23.02.2019, 15:49
Код:
case DIALOG_RACING: { new userid = strlen(inputtext); RaceInvite[userid] = playerid; RaceAccepter[playerid] = userid; if(!userid) return SendClientMessage(playerid, GREY, "[ERROR]: {FFFFFF}Insert a player ID to proceed."); if(response) { if(InRace[playerid] == 1) return SendClientMessage(playerid, GREY, "[ERROR]: {FFFFFF}You're already racing!"); if(InRace[userid] == 1) return SendClientMessage(playerid, GREY, "[ERROR]: {FFFFFF}This player is already racing!"); if(userid == INVALID_PLAYER_ID) { SendClientMessage(playerid, CINZA, "[ERROR]: {FFFFFF}This player isnt connected!"); } if(userid != INVALID_PLAYER_ID) { ShowPlayerDialog(playerid, DIALOG_RACE_MAP, DIALOG_STYLE_LIST, "Select the map", "Countryside\nMountainss\n{B22222}Underwater Race\n{B22222}Lost City\n{B22222}Countryside (Mirror)\n{B22222}Rainbow Road", "Confirm", "Cancel"); } }
Also, with !IsPlayerConnected(userid) it returns the error message be it a valid or invalid player id.
Send help please!