25.02.2011, 20:14
Код:
if(!strcmp(cmdtext, "/pay", true)) { new target, amount; if(sscanf(cmdtext, "ui", target, amount)) return SendClientMessage(playerid, 0x00ff0fff, "USAGE: /pay [playerid/name] [money]"); else if(target == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0x00ff0fff, "Enter a valid player!"); else if(amount > GetPlayerMoney(playerid)) return SendClientMessage(playerid, 0x00ff0fff, "You haven't got enough money to give!"); GivePlayerMoney(target, amount); GivePlayerMoney(playerid, -amount); new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); GetPlayerName(target, string, MAX_PLAYER_NAME); format(string, sizeof string, "%s takes out some money and gives it to %s", pName, string); ProxDetector(40.0, playerid, str, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION); format(string, sizeof string, "You have received %i monies from %s!", amount, pName); SendClientMessage(target, 0xff0fffff, string); return 1; }
Код:
D:\Games\Grand Theft Auto (GTA) San Andreas-HOODLUM\ROLE FUCKING PLAY\gamemodes\VRP.pwn(313) : error 017: undefined symbol "str" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
ProxDetector(40.0, playerid, str, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION);