19.07.2009, 17:12
can anyone tell me why i get this compile error (return 1; line)
Heres my code:
Код:
C:\Documents and Settings\Chris\Desktop\Stunt City\gamemodes\NewServer.pwn(566) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
if (pickupid == who) { new pname[24], string[128]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s has just purchased MR.Whoopey fleet of vehicles.", pname); SendClientMessageToAll(0x33AA33AA, string); SendClientMessage(playerid, 0xFFA500AA, "Better go serve some ice cream!."); GivePlayerMoney(playerid, -1000); } else SendClientMessage(playerid, 0xFFA500AA, "You dont have enough cash for this price: $1000"); } return 1; }