07.07.2006, 07:47
Quote:
Originally Posted by Jaanis
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
Код:
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]); |
Код:
new Float:pos[512]; pos = strtok(tmpres,i,';'); pwd_hash=strval(pos); pos = strtok(tmpres,i,';'); acc_state=strval(pos); pos = strtok(tmpres,i,';'); set(clantag,pos); pos = strtok(tmpres,i,';'); spawnCoords[PlayerId(nickname)][0]=floatstr(pos); pos = strtok(tmpres,i,';'); spawnCoords[PlayerId(nickname)][1]=floatstr(pos); pos = strtok(tmpres,i,';'); spawnCoords[PlayerId(nickname)][2]=floatstr(pos);
Quote:
Originally Posted by Wirrkopf
Код:
C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2010) : error 021: symbol already defined: "strtok" C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2025) : error 047: array sizes do not match, or destination array is too small C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2041) : warning 203: symbol is never used: "fcopy" C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2041) : warning 203: symbol is never used: "frename" C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2041) : warning 203: symbol is never used: "strlower" C:\Dokumente und Einstellungen\Wirrkopf\Desktop\samp01b-server\gamemodes\src\lvdmod.pwn(2041) : warning 203: symbol is never used: "strupper" Pawn compiler 3.0.3367 Copyright © 1997-2005, ITB CompuPhase 2 Errors. Sorry for my english i hope you understand me |