28.06.2011, 14:01
I want to do TDM mod and i am new in Pawno i tryied to do Dialog and When he presses on the weapon he gets the gun
now i wirte that:
And i have some errors in it
what to do?
how i can create dialog?
and how to fix it?
now i wirte that:
PHP код:
if (strcmp("/M4", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,0xFF0000AA, "You don't have enough money! You Need 2,000$!");
SendClientMessage(playerid, COLOR_YELLOW, "You have received an M4.");
GivePlayerWeapon(playerid, 31, 7500);
GivePlayerMoney(playerid, -2000);
return 1;
PHP код:
D:\users\йщй\Desktop\ъйчйд згщд (4)\Check.pwn(233) : error 010: invalid function or declaration
D:\users\йщй\Desktop\ъйчйд згщд (4)\Check.pwn(235) : error 010: invalid function or declaration
D:\users\йщй\Desktop\ъйчйд згщд (4)\Check.pwn(239) : error 010: invalid function or declaration
how i can create dialog?
and how to fix it?