Some Errors
#1

Quote:

C:\Users\Administrator\Desktop\Samp Server\Cars.pwn(82) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Administrator\Desktop\Samp Server\Cars.pwn(82) : warning 215: expression has no effect
C:\Users\Administrator\Desktop\Samp Server\Cars.pwn(82) : error 001: expected token: ";", but found ")"
C:\Users\Administrator\Desktop\Samp Server\Cars.pwn(82) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\Samp Server\Cars.pwn(82) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

when running this:
Quote:

public OnPlayerConnect(playerid)
{
if(!fexist(PlayerFile(playerid)))
{
new File:file = fopen(PlayerFile(playerid));
fwrite(file, "OwnVehicle=0");
fwrite(file, "VehicleID=0");
fclose(file);
}
return 1;
}

thanks for helpers
Reply
#2

Try this

Код:
public OnPlayerConnect(playerid)
{
if(!fexist(PlayerFile(playerid))
{
new File:file = fopen(PlayerFile(playerid));
fwrite(file, "OwnVehicle=0");
fwrite(file, "VehicleID=0");
fclose(file);
}
return 1;
}
Reply
#3

No make that:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(!fexist(PlayerFile(playerid)))
        {
        new File:file = fopen(PlayerFile(playerid));
        fwrite(file, "OwnVehicle=0");
        fwrite(file, "VehicleID=0");
        fclose(file)
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)