04.12.2012, 18:32
Thanks all, Also im pretty new to scripting atm but im just developing a small unique script which will be easier to test using a player variable (i think) But once i've released it i'll update it to using an array (Also think)
And also im getting a few errors.. Heres my script (Blanked out as i don't want anyone copying my idea until i release it)
Now heres the errors i get..
Weird because i did define my variable and also set the value to 0..
new pVariable=0[MAX_PLAYERS];
And also im getting a few errors.. Heres my script (Blanked out as i don't want anyone copying my idea until i release it)
pawn Code:
CMD:XXX (playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, XXXXXXXXXXX))
{
CreateObject(XXXXXXXXXXXXXXXXXXXXXXXXXXXX);
pVariable[playerid] ++;
}
return 1;
}
Code:
C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : error 017: undefined symbol "pVariable" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : warning 215: expression has no effect C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : error 001: expected token: ";", but found "]" C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : error 029: invalid expression, assumed zero C:\Users\Scripting.Ash-PC\Desktop\Roleplay\filterscripts\xxx.pwn(245) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
new pVariable=0[MAX_PLAYERS];