Problema intalnita (descriere):VReau sa fac comanda /car ca cind sa dau /car sa scriu nume nu sa-mi apara lista cu masini si tot sa dau in continuu next next next Ero(area / rile) / warning-(ul / urile):Nu-mi da eroare Liniile de cod / sursa / script-ul:Liniile Scriptului :
COMMAND:car(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/car", params);
// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// Check if the player's admin-level is at least 1
if (APlayerData[playerid][PlayerLevel] >= 1)
{
// Make sure the player isn't inside a vehicle
if (GetPlayerVehicleID(playerid) == 0)
CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car
}
else
return 0;
}
else
return 0;
// Let the server know that this was a valid command
return 1;
}
Question
T1nKoD3
Problema intalnita (descriere):VReau sa fac comanda /car ca cind sa dau /car sa scriu nume nu sa-mi apara lista cu masini si tot sa dau in continuu next next next
Ero(area / rile) / warning-(ul / urile):Nu-mi da eroare
Liniile de cod / sursa / script-ul:Liniile Scriptului :
COMMAND:car(playerid, params[]) { // Send the command to all admins so they can see it SendAdminText(playerid, "/car", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player's admin-level is at least 1 if (APlayerData[playerid][PlayerLevel] >= 1) { // Make sure the player isn't inside a vehicle if (GetPlayerVehicleID(playerid) == 0) CarList_Create(playerid); // Create a list of cars (only the first 10 cars) and show the dialog so the player can choose a car } else return 0; } else return 0; // Let the server know that this was a valid command return 1; }Edited by T1nKoD310 answers to this question
Recommended Posts