05.03.2012, 05:58
whenever i compile this i get these errors
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 017: undefined symbol "cmd_setname"
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : fatal error 107: too many error messages on one line
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 017: undefined symbol "cmd_setname"
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(441) : fatal error 107: too many error messages on one line
pawn Код:
CMD:setname(playerid, params[]);
{
new pName[MAX_PLAYER_NAME]
tmp = strtok(cmdtext, idx);
giveplayerid = ReturnUser(tmp);
if(PlayerInfo[playerid][Admin] >= 3)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFF0000AA, "USAGE: /setname [ID] [Name]");
return 1;
}
else
{
if(sscanf(params, "ui", giveplayerid, pName))
{
SetPlayerName(giveplayerid, pName);
return 1;
}
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "You are not an Admin!");
return 1;
}
return 1;
}