warn help
#1

This line:
PHP код:
    if(!strcmp(playernameVehicleInfo[vehicleid][vehOwner], trueMAX_PLAYER_NAME) && IsPlayerInAnyVehicle(playeridvehicleid)) return SendClientMessage(playeridCOLOR_GREY"You are not in your vehicle."); 
giving me this warn:
PHP код:
warning 202number of arguments does not match definition 
what's the problem?
Reply
#2

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.");
Reply
#3

ty worked rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)