(481) : error 010: invalid function or declaration (483) : error 001: expected token: ";", but found "-identifier-" (486) : error 010: invalid function or declaration
if(strcmp("/shout",cmdtext, true, 3))
new stringz[128]
GetPlayerName(playerid, stringz, sizeof(stringz));
format(stringz, sizeof(stringz), "[SHOUT]%s: %s", stringz, cmdtext[4]);
SendClientMessageToAll(COLOR_WHITE, stringz);
return 1;
}
|
Originally Posted by coole210
I'm trying to make a /shout command but i get these errors,
Код:
(481) : error 010: invalid function or declaration (483) : error 001: expected token: ";", but found "-identifier-" (486) : error 010: invalid function or declaration Here's my /shout command Код:
if(strcmp("/shout",cmdtext, true, 3))
new stringz[128]
GetPlayerName(playerid, stringz, sizeof(stringz));
format(stringz, sizeof(stringz), "[SHOUT]%s: %s", stringz, cmdtext[4]);
SendClientMessageToAll(COLOR_WHITE, stringz);
return 1;
}
|
if(strcmp("/shout",cmdtext, true, 3))
{
new stringz[128];
GetPlayerName(playerid, stringz, sizeof(stringz));
format(stringz, sizeof(stringz), "[SHOUT]%s: %s", stringz, cmdtext[4]);
SendClientMessageToAll(COLOR_WHITE, stringz);
return 1;
}
if(strcmp("/kill",cmdtext,true) == 0)
SetPlayerHealth(playerid,0);
SendClientMessage(playerid, COLOR_RED, "You have killed yourself.");
return 1;
}
return 0;
}
return 0;
(477) : error 010: invalid function or declaration
if(strcmp("/kill",cmdtext,true) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid, COLOR_RED, "You have killed yourself.");
return 1;
}
return 0;
}
for(new i=0;i<MAX_PLAYERS;i++) { SetPlayerScore(i, tcash[i] /*?*/); }
|
Originally Posted by Pandabeer1337
pawn Код:
|
GivePlayerTcash(playerid, tcash) ResetPlayerTcash(playerid) GetPlayerTcash(playerid)
|
Originally Posted by coole210
Quote:
I have these commands : Код:
GivePlayerTcash(playerid, tcash) ResetPlayerTcash(playerid) GetPlayerTcash(playerid) |
than you could do this:for(new i=0;i<MAX_PLAYERS;i++) { SetPlayerScore(i, GetPlayerTcash(i)); }