Player variables
#5

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)

pawn Code:
CMD:XXX (playerid, params[])
    {
    if(IsPlayerInRangeOfPoint(playerid, XXXXXXXXXXX))
    {
    CreateObject(XXXXXXXXXXXXXXXXXXXXXXXXXXXX);
    pVariable[playerid] ++;
    }
    return 1;
    }
Now heres the errors i get..


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.
Weird because i did define my variable and also set the value to 0..

new pVariable=0[MAX_PLAYERS];
Reply


Messages In This Thread
Player variables - by Lz - 04.12.2012, 18:16
Re: Player variables - by tyler12 - 04.12.2012, 18:18
Re: Player variables - by CoaPsyFactor - 04.12.2012, 18:18
Re: Player variables - by Feastahashi - 04.12.2012, 18:19
Re: Player variables - by Lz - 04.12.2012, 18:32
Re: Player variables - by Bakr - 04.12.2012, 18:37
Re: Player variables - by Konstantinos - 04.12.2012, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)