warn help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warn help (
/showthread.php?tid=571377)
warn help -
Rabea - 18.04.2015
This line:
PHP код:
if(!strcmp(playername, VehicleInfo[vehicleid][vehOwner], true, MAX_PLAYER_NAME) && IsPlayerInAnyVehicle(playerid, vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in your vehicle.");
giving me this warn:
PHP код:
: warning 202: number of arguments does not match definition
what's the problem?
Re: warn help -
JaKe Elite - 18.04.2015
IsPlayerInAnyVehicle should be replaced with IsPlayerInVehicle.
Here's the code.
pawn Код:
if(!strcmp(playername, VehicleInfo[vehicleid][vehOwner], true, MAX_PLAYER_NAME) && IsPlayerInVehicle(playerid, vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in your vehicle.");
Re: warn help -
Rabea - 18.04.2015
ty worked rep