Pawno compiler bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno compiler bug (
/showthread.php?tid=234765)
Pawno compiler bug -
jaami - 04.03.2011
Pawno compiler bug
PHP код:
if(strcmp(cmd, "/setadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setadmin [playerid/PartOfName] [level(1-3)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 6) || IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pAdmin] = level;
printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
format(string, sizeof(string), " You have been promoted to a level %d admin by %s", level, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " .:You need to be [Admin] to use this command:.");
}
}
return 1;
}
C:\Users\jaami\Desktop\stuffs\0.3c\gamemodes\gf.pw n(14391) : error 029: invalid expression, assumed zero
C:\Users\jaami\Desktop\stuffs\0.3c\gamemodes\gf.pw n(14391) : error 001: expected token: ";", but found ")"
C:\Users\jaami\Desktop\stuffs\0.3c\gamemodes\gf.pw n(14391) : error 029: invalid expression, assumed zero
C:\Users\jaami\Desktop\stuffs\0.3c\gamemodes\gf.pw n(14391) : fatal error 107: too many error messages on one line
Re: Pawno compiler bug -
jaami - 04.03.2011
sry for submit two post
i defiend all already last time no error now i dont know why
Re: Pawno compiler bug -
jaami - 05.03.2011
the line is
if (PlayerInfo[playerid][pAdmin] >= 6) || IsPlayerAdmin(playerid))
is thr wrong i change to this alos cant
if (PlayerInfo[playerid][pAdmin] >= 6 || IsPlayerAdmin(playerid))
still same