While compiling...
#1

While compiling this :
Код:
//-------------------------[Fare]---------------------------------------------
if(strcmp(cmd, "/startfare", true) == 0 || strcmp(cmd, "/fare", true) == 0)
{
if (PlayerInfo[playerid][pFaction] == 3)
{
new taxi = GetPlayerVehicleID(playerid);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /startfare [playerID]");
return 1;
}
if(IsStringAName(tmp))
{
giveplayerid = GetPlayerID(tmp);
}
else
{
giveplayerid = strval(tmp);
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!IsATaxi(taxi))
{
SendClientMessage(playerid, COLOR_GRAD2, "Your not in a taxi!");
return 1;
}
if(fared[giveplayerid]!=255)
{
SendClientMessage(playerid, COLOR_GRAD2, "They are already being fared!");
return 1;
}
if(GetPlayerVehicleID(giveplayerid) == taxi)
{
format(string, sizeof(string), "You started a fare on %s, /stopfare /eject or let them leave to stop it",giveplayer);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "%s started a fare of $1 per second, leave the vehicle to stop the fare",sendername);
SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~n~~n~~W~Fare: ~R~$%d",fare[playerid]);
GameTextForPlayer(giveplayerid, string, 50000, 3);
fared[giveplayerid] = playerid;
fare[giveplayerid] = 0;
taxirequest[giveplayerid] = 0;
format(string, sizeof(string), "%s has begun a fare on %s",sendername, giveplayer);
SendJobMessage(COLOR_YELLOW, 1, string);
return 1;
}
}
return 1;
}
//-------------------------[End Fare]---------------------------------------------
if(strcmp(cmd, "/endfare", true) == 0 || strcmp(cmd, "/stopfare", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /endfare [playerID]");
return 1;
}
giveplayerid = strval(tmp);
if (PlayerInfo[playerid][pFaction] != 3)
{
SendClientMessage(playerid, COLOR_GRAD2, "Your not a taxi driver!");
return 1;
}
if(!IsATaxi(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_GRAD2, "Your not in a taxi!");
return 1;
}
if(fared[giveplayerid] != playerid)
{
SendClientMessage(playerid, COLOR_GRAD2, "You aren't faring that person!");
return 1;
}
format(string, sizeof(string), "You collected %d from this fare, it was added to your paycheck", fare[giveplayerid]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), "You payed %d for the journey", fare[giveplayerid]);
SendClientMessage(giveplayerid, TEAM_GROVE_COLOR, string);
PlayerInfo[playerid][pPaycheck] += fare[giveplayerid];
AntiHack(giveplayerid, -fare[giveplayerid]);
fared[giveplayerid] = 255;
return 1;

}
Gives me that
Код:
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1778) : warning 217: loose indentation
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1789) : error 017: undefined symbol "IsStringAName"
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1791) : error 017: undefined symbol "GetPlayerID"
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1797) : error 017: undefined symbol "giveplayer"
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1797) : error 017: undefined symbol "giveplayer"
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1797) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Danielo\Desktop\ZRP\SA-MP\GAMEMO~1\crp.pwn(1797) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
While compiling... - by Danielo - 24.06.2010, 00:49
Re: While compiling... - by Kar - 24.06.2010, 00:57
Re: While compiling... - by Danielo - 24.06.2010, 01:00
Re: While compiling... - by mprofitt - 24.06.2010, 01:01
Re: While compiling... - by Kar - 24.06.2010, 01:03
Re: While compiling... - by Danielo - 24.06.2010, 10:15
Re: While compiling... - by Danielo - 24.06.2010, 14:13
Re: While compiling... - by Danielo - 24.06.2010, 15:26
Re: While compiling... - by Hiddos - 24.06.2010, 15:27
Re: While compiling... - by Kar - 24.06.2010, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)