14.01.2011, 15:25
Well, I want to compare the numbers from 2 different files. I get the following errors:
This is the code I get the error at:
Error 83 is at If..., and 87 at Else...
pawn Код:
C:\Users\Kreso\Desktop\SAMP Server\gamemodes\vehtest.pwn(83) : error 036: empty statement
C:\Users\Kreso\Desktop\SAMP Server\gamemodes\vehtest.pwn(87) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
for(new i = 0; i < OWNED_CARS; i ++)
{
new file[50];
format(file, sizeof(file), "vehicles/%d.json", i);
if(djInt(file, "player/owner") == djInt("users/Admin.json", "vehicle/ID"));
{
SendClientMessage(playerid, 0x355262, "Welcome to your vehicle");
}
else
{
RemovePlayerFromVehicle(playerid);
}
}