28.08.2013, 20:05
Allright so I was trying to do a simple setname cmd with zcmd and sscanf im new in this and I got confused in the first part so here is the code
It gives me the error
Anybody knows how to fix?Im just trying simple cmds
Код:
CMD:setacc(playerid, params[]) { new newname[24]; new userplayerid; if(sscanf(params,"u", userplayerid))return SendClientMessage(playerid, 0x33CC33,"USAGE:/setacc [accname]"); if(sscanf(params,"s", newname))return SendClientMessageToAll(playerid, 0x33CC33,"(GetPlayerName) has changed his account name to %s"); return SetPlayerName (playerid, newname); }
Код:
C:\Documents and Settings\Administrador\Ambiente de trabalho\samp03x_svr_R1-2_win32\pawno\strapz.pwn(483) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.