Urmatoarele Erori
(24438) : error 029: invalid expression, assumed zero
(24440) : warning 213: tag mismatch
(24440) : error 001: expected token: ")", but found "["
(24440) : error 029: invalid expression, assumed zero
(24440) : warning 215: expression has no effect
(24440) : error 001: expected token: ";", but found "]"
Linia 24440: if(PlayerInfo[id][cID][v] != 0)
Linia 24438:for(new v; v < MAX_PERSONAL_VEHICLES; v++)
Question
adv1337
CMD:checkv(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly);
new id,string[256],count;
if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /checkv [name/playerid]");
if(IsPlayerConnected(id))
{
for(new v; v < MAX_PERSONAL_VEHICLES; v++)
{
if(PlayerInfo[id][cID][v] != 0)
{
format(string,sizeof(string),"[ID:%d] %s | age: %d | km: %.0f | colors: %d, %d",PlayerInfo[id][pCarID][v],aVehicleNames[PlayerInfo[id][pCarModel][v] - 400],GetDaysFromTimestamp(PlayerInfo[id][pCarBuyTime][v]),PlayerInfo[id][pCarKM][v],PlayerInfo[id][pCarColor1][v],PlayerInfo[id][pCarColor2][v]);
SendClientMessage(playerid, COLOR_LIGHTGREEN3, string);
count++;
}
}
if(count == 0) return SendClientMessage(playerid, COLOR_WHITE, "This player don't have a vehicle spawned.");
}
return 1;
}
Urmatoarele Erori
(24438) : error 029: invalid expression, assumed zero
(24440) : warning 213: tag mismatch
(24440) : error 001: expected token: ")", but found "["
(24440) : error 029: invalid expression, assumed zero
(24440) : warning 215: expression has no effect
(24440) : error 001: expected token: ";", but found "]"
Linia 24440: if(PlayerInfo[id][cID][v] != 0)
Linia 24438:for(new v; v < MAX_PERSONAL_VEHICLES; v++)
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now