Argument mismatch while it's not
#1

Hello.
I get a argument mismatch, while i filled in every argument.
PHP код:
//command
COMMAND:spawn(playerid, params[])
{
    if(!
Player[playerid][Authed]) return SendClientError(playerid, "You are not authed!");
    if(!
Player[playerid][Admin]) return SendClientError(playerid,"You are not authorized to use this command!");
    new 
target[35];
    if(
sscanf(params, "d", target)) return SendClientUsage(playerid, "/spawn [playerid]");
    
pushRespawn(target);
    return 
1;
} 
PHP код:
// the stock
pushRespawn(playerid)
{
SetSpawnInfo(playerid, 0, Player[playerid][Skin], 1743.2271, -1855.3967, 13.4140, 0.0000, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
return 
1;
} 
Reply
#2

pawn Код:
//command
COMMAND:spawn(playerid, params[])
{
    if(!Player[playerid][Authed]) return SendClientError(playerid, "You are not authed!");
    if(!Player[playerid][Admin]) return SendClientError(playerid,"You are not authorized to use this command!");
    new targetid;
    if(sscanf(params, "d", targetid)) return SendClientUsage(playerid, "/spawn [playerid]");
    pushRespawn(targetid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)