Uite: new proplev = strval(tmp);
//if(strcmp(x_job,"car",true) == 0)
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
format(string, sizeof(string), "House: %d", i);
SendClientMessage(playerid, COLOR_GRAD2, string);
if(proplev > 0)
{
if(strcmp(x_job,"level",true) == 0)
{
HouseInfo[i][hLevel] = proplev;
}
else if(strcmp(x_job,"price",true) == 0)
{
HouseInfo[i][hValue] = proplev;
}
}
}
}
else if(strcmp(x_job,"ownablecar",true) == 0)
{
Si acum dupa ce dau compile imi apar erorile astea :
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(12083) : warning 219: local variable "mod" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37066) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37081) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Linia 12083:
new mod = 50;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
Si linia 37081:
result[index - offset] = EOS;
return result;
} Sa-mi spuneti daca trebuie sa mai postez vreo linie.