08.05.2012, 15:03
hello every one
i think this command is fine but Error come from no where xD
Code is
Erros Show:
Please Help me in Dat
i think this command is fine but Error come from no where xD
Code is
Код:
COMMAND:slap(playerid, params[]) { new string[208 + MAX_PLAYER_NAME],PlayerN[MAX_PLAYERS],OtherN[MAX_PLAYERS]; new Float:x, Float:y, Float:z; if(AccountInfo[playerid][AdminLevel] >= 1) { new targetid,String[156]; if(sscanf(params,"us", targetid,String)) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/slap "WHITE"[playerid] [REASON]"); if(targetid == playerid) return SendClientMessage(playerid, COLOR_RED, "You Can't Slap Yourself !"); if(AccountInfo[playerid][AdminLevel] < AccountInfo[playerid][AdminLevel]) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You can't use this command on A Higher Level Admin Then You!"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid PlayerID"RED"(Player Not Connected)!"); if(String[0] <= 4) return SendClientMessage(playerid, COLOR_RED, "Your Reason Needs To Be More Than 4 Characters"); GetPlayerName(playerid,PlayerN,sizeof(PlayerN)); GetPlayerName(targetid,OtherN,sizeof(OtherN)); GetPlayerPos(OtherN,x,y,z); SetPlayerPos(OtherN,z,y,z +5); format(string, sizeof(string), ""BLUE"\"%s\""RED" Was Slaped By Admin "BLUE"\"%s\""RED" Reason: %s", OtherN, PlayerN,String); SendClientMessageToAll(COLOR_BRIGHTRED, string); printf("\"%s\"Was Slapped By Admin \"%s\" Reason %s",OtherN, PlayerN,String); } else { SendClientMessage(playerid,COLOE_WHITE,"You Are Not Hight Enough level to use this Command"); } return 1; }
Код:
C:\Users\almooo\Desktop\Zombe server test\gamemodes\Zm.pwn(2731) : error 035: argument type mismatch (argument 1) C:\Users\almooo\Desktop\Zombe server test\gamemodes\Zm.pwn(2732) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.