30.06.2006, 18:31
I got a problem when I tried to add a few more lines to save and read spawn coords. I changed the code in the Load script to
However, no matter what I tried with the last 3 lines, they don't give the correct result. Writing spawnCoords into the file works fine, but it's always shown like this:
SpawnX: 1113.791094
SpawnY: 113.791094
SpawnZ: 13.791094 (The only one correct)
Because most of the things I tried results in the same output, it looks too me like there's a limit of max 3 settings or something?
Код:
new Float:pos[512]; pos = strtok(tmpres,i,';'); pwd_hash=strval(pos[0]); acc_state=strval(pos[1]); set(clantag,pos[2]); set(spawnCoords[PlayerId(nickname)][0],pos[3]); set(spawnCoords[PlayerId(nickname)][1],pos[4]); set(spawnCoords[PlayerId(nickname)][2],pos[5]);
SpawnX: 1113.791094
SpawnY: 113.791094
SpawnZ: 13.791094 (The only one correct)
Because most of the things I tried results in the same output, it looks too me like there's a limit of max 3 settings or something?