#1

please can someone tell me wats wrong but in a way that i understand next time thank you very much.

This is the errors
C:\Documents and Settings\Administrator\Bureaublad\SAMP\pawno\Mayne RPG.pwn(301) : error 017: undefined symbol "ReturnUser"
C:\Documents and Settings\Administrator\Bureaublad\SAMP\pawno\Mayne RPG.pwn(310) : error 017: undefined symbol "giveplayer"
C:\Documents and Settings\Administrator\Bureaublad\SAMP\pawno\Mayne RPG.pwn(310) : error 017: undefined symbol "giveplayer"
C:\Documents and Settings\Administrator\Bureaublad\SAMP\pawno\Mayne RPG.pwn(310) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Bureaublad\SAMP\pawno\Mayne RPG.pwn(310) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

En this is the command

if(strcmp(cmd, "/makeadmin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "Mayne: /makeadmin [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] >= 1337)
{
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_GREEN, string);
format(string, sizeof(string), " You have promoted %s to a level %d admin.", giveplayer,level);
SendClientMessage(playerid, COLOR_GREEN, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)