08.12.2009, 14:53
When i compile with this line in my gamemode, this error comes up
Line 11244 is : SetPlayerName(giveplayerid, newname);
Its inside an command, the whole command is :
Please fix this, or at least tell how to.
Thanks in advance.
Greets,
Mujib
Код:
C:\Users\Mujib\My Files\SA-MP Scripts, Tools, and Webpages\Pombear RPG (Ubuntu PC)\_Server\gamemodes\prpg.pwn(11244) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Its inside an command, the whole command is :
Код:
if(strcmp(cmd, "/setname", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /setmoney [playerid] [newname]"); return 1; } giveplayerid = strval(tmp); tmp = strtok(cmdtext, idx); new newname = strval(tmp); if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 104) { format(string, sizeof(string), "-OperServ- %s's name has been changed by force to $%d,- by admin %s",PlayerName[giveplayerid], newname, PlayerName[playerid]); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerName(giveplayerid, newname); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command."); } return 1; }
Thanks in advance.
Greets,
Mujib