-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Sk3by
-
-
-
-
Acum 2 minute, andrei9971 a spus:
Lasa pCar cum era inainte si incearca asa:
if(PlayerInfo[id][pCar] != -1) total++;
Acum apare asta :
-
tot apare acelasi lucru
-
Degeaba
Daca m-ai putea ajuta discord: Whitby#1022
-
incerc acum sa vad daca merge
-
-
CMD:vcreate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(PlayerInfo[playerid][pAdmin] >= 5) { new id,model,string[128],giveplayer[30],total; if(sscanf(params, "ui", id, model)) return SCM(playerid, COLOR_GREY, "Syntax:{FFFFFF} /vcreate [playerid] [model]"); if(model < 400 || model > 611) return SCM(playerid, COLOR_GREY, "Invalid car ID! (400-611)"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[id][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[id][pCarSlots]) { SendClientMessage(playerid, COLOR_GREY, "This player have all vehicles slots full."); return 1; } GetPlayerName(id, giveplayer, sizeof(giveplayer)); CreateVEH[playerid] = model; CreateVEHID[playerid] = id; format(string, sizeof(string), "Esti sigur ca vrei sa-i dai lui %s masina %s?\n\nAbuzul de aceasta comanda poate duce la scoaterea ta din staff!", giveplayer, aVehicleNames[model - 400]); ShowPlayerDialog(playerid, DIALOG_VCREATE, DIALOG_STYLE_MSGBOX, "Personal Vehicle Create", string, "Da", "Nu"); } } else return SendClientMessage(playerid, COLOR_GREY, "Player not connected."); } else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly); return 1; }
-
CMD:vcreate(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first."); if(PlayerInfo[playerid][pAdmin] >= 5) { new id,model,string[128],giveplayer[30],total; if(sscanf(params, "ui", id, model)) return SCM(playerid, COLOR_GREY, "{008080}Usage: {FFFFFF}/vcreate [playerid] [model]"); if(model < 400 || model > 611) return SCM(playerid, COLOR_GREY, "Invalid car ID! (400-611)"); if(IsPlayerConnected(id)) { if(id != INVALID_PLAYER_ID) { for(new v; v < MAX_PERSONAL_CARS; v++) { if(PlayerInfo[id][pCar][v] != -1) total++; } if(total+1 > PlayerInfo[id][pCarSlots]) { SendClientMessage(playerid, COLOR_GREY, "This player have all vehicles slots full."); return 1; } GetPlayerName(id, giveplayer, sizeof(giveplayer)); CreateVEH[playerid] = model; CreateVEHID[playerid] = id; format(string, sizeof(string), "Esti sigur ca vrei sa-i dai lui %s masina %s?\n\nAbuzul de aceasta comanda poate duce la scoaterea ta din staff!", giveplayer, aVehicleNames[model - 400]); ShowPlayerDialog(playerid, DIALOG_VCREATE, DIALOG_STYLE_MSGBOX, "Personal Vehicle Create", string, "Da", "Nu"); } } else return SendClientMessage(playerid, COLOR_GREY, "Player not connected."); } else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly); return 1; }
C:\Users\CR3STI\Desktop\Clound\gamemodes\GM.pwn(18657) : error 017: undefined symbol "pCar"
C:\Users\CR3STI\Desktop\Clound\gamemodes\GM.pwn(18657) : error 029: invalid expression, assumed zero
C:\Users\CR3STI\Desktop\Clound\gamemodes\GM.pwn(18657) : warning 215: expression has no effect
C:\Users\CR3STI\Desktop\Clound\gamemodes\GM.pwn(18657) : error 001: expected token: ";", but found "]"
C:\Users\CR3STI\Desktop\Clound\gamemodes\GM.pwn(18657) : fatal error 107: too many error messages on one line
Problema givevehicle
in Discuţii scripting
Posted
cum pot defini pcarkey ?