08.06.2011, 17:03
This code:
Gives this error.
Please help :3
pawn Код:
CMD:slap(playerid, params[])
{
if(gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[SLAP])
{
if(sscanf(params, "us[128]", playerid)) return SendClientMessage(playerid, grey, "Usage:/slap <id> <reason>");
else
{
new pname[64], sc[128], playa, giveplayer, Float:slx, Float:sly, Float:slz;
GetPlayerName(playa, giveplayer, sscanf(giveplayer));
GetPlayerPos(playa, slx, sly, slz);
SafeSetPlayerPos(playa, slx, sly, slz+8);
//new targetlevel = gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[SLAP];
//new playerlevel = gPlayerInfo[playerid][PLAYER_LEVEL] < gCommands[SLAP];
format(sc, sscanf(sc), "AdmCmd:%s(%d) Was slapped by admin %s", pname);
SendClientMessageToAll(COLOR_ORANGE, sc);
}
}
return 1;
}
pawn Код:
C:\Documents and Settings\d\Desktop\new.pwn(679) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\d\Desktop\new.pwn(684) : warning 202: number of arguments does not match definition
C:\Documents and Settings\d\Desktop\new.pwn(678) : warning 203: symbol is never used: "giveplayer"
C:\Documents and Settings\d\Desktop\new.pwn(1113) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\d\Desktop\new.pwn(1128) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.