Argument mismatch while it's not
#1

Hello.
I get a argument mismatch, while i filled in every argument.
PHP код:
//command
COMMAND:spawn(playeridparams[])
{
    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(playerid0Player[playerid][Skin], 1743.2271, -1855.396713.41400.0000000000);
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: