HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game Cache dimension

01-18-2007, 08:59 AM#1
DioD
Code:
call StoreString(Core(),"a","a","9999")
call StoreInteger(Core(),"a","a",55555)
call Echo(GetStoredString(Core(),"a","a"),null)
call Echo(I2S(GetStoredInteger(Core(),"a","a")),null)

Code:
function Echo takes string Text, player PlayerID returns nothing
    if Text != "" or Text != null then
        if PlayerID == null then
            call DisplayTimedTextToForce(GetPlayersAll(), 6, Text)
        elseif PlayerID == GetLocalPlayer() then
            call DisplayTimedTextToPlayer(PlayerID, 0, 0, 6, Text)
        endif
    endif
endfunction

Code:
function Core takes nothing returns gamecache
    if udg_Core != null then
        return udg_Core
    else
        call FlushGameCache(InitGameCache("Core"))
        set  udg_Core    =  InitGameCache("Core")
    endif
    return udg_Core
endfunction

integer and string with same kay store in different places
01-18-2007, 09:49 AM#2
Toadcop
DioD ??? you don't know this ?...
01-18-2007, 01:50 PM#3
Vexorian
Also reals and booleans store in different places...