27.12.2012, 05:35
I am trying to learn PAWNO.
I have errors compiling it
Also, I need to know if this command will work.
I have errors compiling it
Код:
C:\Users\USER\Documents\samp03e_svr_R2_win32\pawno\Test.pwn(41) : error 001: expected token: ")", but found "[" C:\Users\USER\Documents\samp03e_svr_R2_win32\pawno\Test.pwn(41) : error 029: invalid expression, assumed zero C:\Users\USER\Documents\samp03e_svr_R2_win32\pawno\Test.pwn(41) : warning 215: expression has no effect C:\Users\USER\Documents\samp03e_svr_R2_win32\pawno\Test.pwn(41) : error 001: expected token: ";", but found "]" C:\Users\USER\Documents\samp03e_svr_R2_win32\pawno\Test.pwn(41) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
PHP код:
CMD:jetpack(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid, "You're not an Administrator Level 2");
{
else if(IsPlayerConnected(playerid) new targetid[MAX_PLAYER_NAME]; new string[256];
{
if(sscanf(params,"u",targetid))SendClientMessage(playerid,"Usage: /jetpack (ID/Name);");
{
GetPlayerName(playerid, targetid);
format(string,sizeof(string),"An administrator has given a jetpack to %s", targetid);
SendClientMessageToAll(-1, string);
GivePlayerJetpack(targetid);
return 1;
}