07.08.2009, 10:32
guys i was playing a litle with scripting and i try to make a taxi job - simple taxi job
but i allways fail...
i wanna make when player go into the Taxi,Bus it write to all players '' Kljukec is now on duty as Taxi Driver, Type /taxi To call a Taxi Service''
here is the code what i try to make:
... and BTW i wanna make this just for TEAM_TAXIDRIVER
and when i compile this i get an warning : tag mismatch on this line : '' if(gTeam[playerid] == TEAM_TAXIDRIVER >=1) ''
can anyone help me with this taxi job please ?
ty
but i allways fail...
i wanna make when player go into the Taxi,Bus it write to all players '' Kljukec is now on duty as Taxi Driver, Type /taxi To call a Taxi Service''
here is the code what i try to make:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] == TEAM_TAXIDRIVER >=1) { new pname[24]; new string[128]; new giveplayerid; format(string, sizeof(string), "%s(%d) Taxi Driver Is On Duty! Type /taxi To Call A Taxi Service!",pname,giveplayerid); SendClientMessage(playerid,0xFF7F50AA, string); } return 1; }
and when i compile this i get an warning : tag mismatch on this line : '' if(gTeam[playerid] == TEAM_TAXIDRIVER >=1) ''
can anyone help me with this taxi job please ?
ty