27.07.2016, 10:48
Hello.
I get a argument mismatch, while i filled in every argument.
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;
}