03.03.2013, 01:25
hello, im scripting a random script (learning scripting exactly)
but i got this error when trying to make a script that give someone money
This is the commands line where the error appear
also, idk why, but the car fix isn't working even u are in car (i want it to not work when u are not in a car and work if u are in car)
Thank you
but i got this error when trying to make a script that give someone money
Код:
D:\Bart\Samp Server\filterscripts\BRMember.pwn(126) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
also, idk why, but the car fix isn't working even u are in car (i want it to not work when u are not in a car and work if u are in car)
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/brfix", cmdtext, true, 10) == 0) { if (IsPlayerInAnyVehicle(GetPlayerVehicleID(playerid))) { RepairVehicle(GetPlayerVehicleID(playerid)); return SendClientMessage(playerid, COLOR_YELLOW, "LS-SW AAD: Your Vehicle is now fixed"); } else return SendClientMessage(playerid, COLOR_YELLOW,"Please get in a car"); } else return SendClientMessage(playerid, COLOR_YELLOW,"Please get in a car"); } if (strcmp("/brrob", cmdtext, true, 10) == 1) //error appear in this line { GivePlayerMoney(playerid,10000); SendClientMessage(playerid, COLOR_GREEN,"Robbery Successful! $10000"); } }