Quote:
Originally Posted by rscaerzx
pawn Код:
CMD:pay(playerid, params[]) { new otherid, cash; if (sscanf(params, "dd", otherid, cash)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /pay [ID] [Cash]"); else { if(GetPlayerMoney(playerid) < cash) SendClientMessage(playerid, COLOR_RED, "You don't have that much!"); if(!IsPlayerConnected(otherid)) SendClientMessage(playerid, COLOR_RED, "That PlayerID is not connected!"); if(otherid == playerid) SendClientMessage(playerid, COLOR_RED, "It is pointless to pay yourself.."); else { new Float:X, Float:Y, Float:Z; GetPlayerPos(otherid, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z); { GivePlayerMoney(playerid, -cash); GivePlayerMoney(otherid, cash); } else return SendClientMessage(playerid, -1, "You are not close enough to the specified player!"); } } return 1; }
Try this
|
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(2792) : error 001: expected token: ")", but found ";"
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(2792) : error 036: empty statement
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(2797) : error 029: invalid expression, assumed zero
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(2797) : warning 215: expression has no effect
D:\BG-RP\samp03e_svr_win32\gamemodes\register.pwn(2797) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.