[HELP]Converting YCMD to ZCMD
#9

In that case, I know the problem. Your 'pCash' isn't defined anywhere in your script.
pawn Код:
#include <a_samp>

enum t
{
    //VarA,
    VarB
};
new Test[MAX_PLAYERS][t];

public OnFilterScriptInit()
{
    new VarA = pCash[0];
    Test[0][VarA] = 1;
    return 1;
}
As you can see, I didn't ever create this "pCash".
Код:
C:\Users\Kevin\AppData\Local\Temp\tmp.pwn(12) : error 017: undefined symbol "pCash"
C:\Users\Kevin\AppData\Local\Temp\tmp.pwn(12) : warning 215: expression has no effect
C:\Users\Kevin\AppData\Local\Temp\tmp.pwn(12) : error 001: expected token: ";", but found "]"
C:\Users\Kevin\AppData\Local\Temp\tmp.pwn(12) : error 029: invalid expression, assumed zero
C:\Users\Kevin\AppData\Local\Temp\tmp.pwn(12) : fatal error 107: too many error messages on one line
That's the errors I get. So you shouldn't use pCash, just the PlayerInfo[playerid][Money], unless if you don't have this in your script.

TIP:
Just download an existing gamemode, look arround in it and edit some stuff. Eg. add things, remove things etc. That's how I learned scripting (and by reading tutorials/wiki off course, but this gamemode editting [DON'T RELEASE THE EDITTED GAMEMODE THEN! Very important] works very good)
Reply


Messages In This Thread
[HELP]Converting YCMD to ZCMD - by RenovanZ - 12.10.2012, 05:21
Re: [HELP]Converting YCMD to ZCMD - by Kwarde - 12.10.2012, 05:43
Re: [HELP]Converting YCMD to ZCMD - by RenovanZ - 12.10.2012, 05:48
Re: [HELP]Converting YCMD to ZCMD - by Faisal_khan - 12.10.2012, 05:51
Re: [HELP]Converting YCMD to ZCMD - by Kwarde - 12.10.2012, 05:53
Re: [HELP]Converting YCMD to ZCMD - by RenovanZ - 12.10.2012, 05:54
Re: [HELP]Converting YCMD to ZCMD - by Kwarde - 12.10.2012, 05:57
Re: [HELP]Converting YCMD to ZCMD - by RenovanZ - 12.10.2012, 05:59
Re: [HELP]Converting YCMD to ZCMD - by Kwarde - 12.10.2012, 06:02
Re: [HELP]Converting YCMD to ZCMD - by RenovanZ - 12.10.2012, 06:04

Forum Jump:


Users browsing this thread: 1 Guest(s)