29.10.2010, 18:08
Ok now I fixed many errors and get this one:
How to fix it?
Код:
C:\Documents and Settings\Justas\Desktop\samp\gamemodes\Cowboy.pwn(68) : error 017: undefined symbol "SetPlayerMoney" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/hydra", true) == 0)
{
money = GetPlayerMoney(playerid);
if(money >= 500000)
{
format(hydra, sizeof(hydra), "%s, tu nusipirkai masina Hydra uz %d-sveikiname!Smagios keliones!", GetPlayerName(playerid, vardas, sizeof(vardas)), SetPlayerMoney(playerid, -500000));
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(playerid, x, y, z);
SendClientMessage(playerid, 0xFFFFFFFF, hydra);
return 1;
}
if( money < 500000) return SendClientMessage(playerid, 0xFFFFFFFF, "Tu neturi tiek pinigu, atsiknisk! :D");
return 1;
}
return 0;
}

