19.05.2009, 16:14
This:
And this:
is my code ... i get these errors:
alright peeps, this sounds stupid ("this is my code and these are my errors") but djeez pawno got some issues with arrays or something??
I can't get it right here, i've tried 3D arrays ... etc. lot's of thing but nothing would change any of my errors, any advanced scripter between the readers here? i hope u can help me out!
Greetzz
Код:
public OnGameModeInit() { new float:cfiaCor[MAX_PLAYERS][5]; SetTimerEx("cfiaTimeUpdate", 60000, 1, "a", MAX_PLAYERS, cfiaCor); }
Код:
1975 forward cfiaTimeUpdate(cfiaCor); 1976 public cfiaTimeUpdate(cfiaCor) 1977 { 1978 for(new i=0; i<MAX_PLAYERS; i++) 1979 { 1980 cfiaCor[i][0] = cfiaCor[i][3]; 1981 cfiaCor[i][1] = cfiaCor[i][4]; 1982 cfiaCor[i][2] = cfiaCor[i][5]; 1983 1984 new Float:tempx,Float:tempy,Float:tempz; 1985 GetPlayerPos(playerid,tempx,tempy,tempz); 1986 cfiaCor[i][3] = tempx; 1987 cfiaCor[i][4] = tempy; 1988 cfiaCor[i][5] = tempz; 1989 } 1990 }
Код:
C:\Documents and Settings\Rien\My Documents\Samp server 2\gamemodes\ronserver.pwn(1980) : error 028: invalid subscript (not an array or too many subscripts): "cfiaCor" C:\Documents and Settings\Rien\My Documents\Samp server 2\gamemodes\ronserver.pwn(1980) : warning 215: expression has no effect C:\Documents and Settings\Rien\My Documents\Samp server 2\gamemodes\ronserver.pwn(1980) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Rien\My Documents\Samp server 2\gamemodes\ronserver.pwn(1980) : error 029: invalid expression, assumed zero C:\Documents and Settings\Rien\My Documents\Samp server 2\gamemodes\ronserver.pwn(1980) : fatal error 107: too many error messages on one line
I can't get it right here, i've tried 3D arrays ... etc. lot's of thing but nothing would change any of my errors, any advanced scripter between the readers here? i hope u can help me out!
Greetzz