How to ... ?
#7

Код:
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.
Line 313:
Код:
ProxDetector(40.0, playerid, str, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION);
Reply


Messages In This Thread
How to ... ? - by Anzhelov - 25.02.2011, 07:42
Re: How to ... ? - by cessil - 25.02.2011, 08:56
Re: How to ... ? - by Hiddos - 25.02.2011, 09:45
Re: How to ... ? - by Anzhelov - 25.02.2011, 16:02
Re: How to ... ? - by Mean - 25.02.2011, 19:47
Re: How to ... ? - by maramizo - 25.02.2011, 20:10
Re: How to ... ? - by Anzhelov - 25.02.2011, 20:14
Re: How to ... ? - by Stigg - 25.02.2011, 20:16
Re: How to ... ? - by Mean - 25.02.2011, 20:17
Re: How to ... ? - by Anzhelov - 25.02.2011, 22:26

Forum Jump:


Users browsing this thread: 3 Guest(s)