Quote:
Originally Posted by LarzI
Why not use get zcmd and learn to use it?
Anyway..:
pawn Код:
if( !strcmp( cmdtext, "/joinrace", true )) { if( !cmdtext[ 10 ] || cmdtext[ 10 ] == '\1' ) return SendClientMessage(playerid, 0xFF0000, "Please enter a race id to join or type /races"); new raceid = strval( cmdtext[ 10 ] ); if(raceid > currentraceslot-1) return SendClientMessage(playerid, 0xFF0000, "The race ID you have entered is invalid"); if(RaceInfo[raceid][racejoinable] == false && RaceInfo[raceid][racerunning] == false && InRace[playerid] == -1) OpenRace(raceid); JoinRace(playerid, raceid); return 1; }
|
EDIT: The command dosen't work..
RE-EDIT.. solved