14.07.2010, 10:29
Hai all i needed help formating a part of my premium thing
But when i compile it gives these errors
I mean 1 error but idk how to fix it
pawn Код:
COMMAND:pslap(playerid,params,cmdtext[]) {
new pId;
if(isprem[pId]==1) return SendClientMessage(playerid, COLOR_RED, "You used /pslap");
{
else
}
(isprem[pId]==0); SendClientMessage(playerid, COLOR_RED, "You arent a premium member");
new idx,tmp[256];
new sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
new string [128];
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pslap [playerid]");
if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID.");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(otherplayer, giveplayer, sizeof(giveplayer));
new Float:X, Float:Y, Float:Z;
GetPlayerPos(otherplayer, X, Y, Z);
SetPlayerPos(otherplayer, X, Y, Z+10);
format(string, sizeof(string), "\"%s\" was slapped by Admin \"%s\".", giveplayer, sendername);
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(342) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(344) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(832) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.