11.09.2011, 02:06
Hey Guys, I Know I have been posting a fair bit recently, and Thanks ALOT so far. you have been really helpfull.
I Have been doing alot of Scripting and with a new command I Have hit this.
The Error is:
Thanks in Advance
I Have been doing alot of Scripting and with a new command I Have hit this.
PHP код:
if(strcmp(cmd, "/build", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /build [buildable]"), SendClientMessage(playerid, COLOR_GREY, "Objects: 1 [ Fence ]");
if(strval(tmp) == 1 || PlayerInfo[playerid][pMats] == 5)) // error 029: invalid expression, assumed zero
{
// Fence: 1141
new pos:X;
new pos:Y;
new pos:Z;
new object;
GetPlayerPos(strval(tmp), pos:X, pos:Y, pos:Z);
CreateObject(object, pos:X, pos:Y, pos:Z);
}
else // invalid expression, assumed zero Error
{
SendClientMessage(playerid, 0xFFFFFFFF, "Not enough mats Buddy!");
}
return 1;
}
Код:
error 022: must be lvalue (non-constant) error 001: expected token: ";", but found ")" rror 029: invalid expression, assumed zero fatal error 107: too many error messages on one line