Posts: 734
Threads: 8
Joined: Jun 2009
Quote:
|
Originally Posted by Puzi
Код:
C:\Users\PUZI\Desktop\Racing\gamemodes\sampracing.pwn(455) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I had a Indentation warning but I fixed that 
|
its not an Indentation warning! and yes cedimedi has forgot "playerid" in his ; public repair() function
Posts: 734
Threads: 8
Joined: Jun 2009
pawn Код:
if(strcmp(cmdtext, "/repair", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) & (IsPlayerInCheckpoint(playerid)))
{
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Your vehicle has been successfully repaired! You may leave the Pitstop!");
}
else SendClientMessage(playerid, COLOR_YELLOW, "*** You are not in a vehicle!");
return 1;
}