Väike probleem
#1
Tahtsin proovida teha commandit kustutamasin, aga just ei läinud kõige paremini ehk mõni on siin targem ja saab aidata mind.


PHP Code:
COMMAND:kustutamasin(playeridparams[]) {
    if(
pInfo[playerid][Adminlevel] > 1) {
        if(
IsPlayerInAnyVehicle(playerid)) {
            new 
vehicleid;
            
vehicleid GetPlayerVehicleID(playerid);
            
DestroyVehicle(vehicleid);
            else 
SendClientMessage(playerid, -1"Masin eemaldatud.");
        }  else 
SendClientMessage(playerid"~r~VIGA: ~b~Sa ei ole sõidukis");
    }  
SendClientMessage(playerid"~r~VIGA: ~b~Sul ei ole õigusi seda kasutada");
    return 
1;



PHP Code:
C:\Documents and Settings\TEMP\Desktop\Samp Package\gamemodes\Syndicate.pwn(964) : error 029invalid expressionassumed zero
C
:\Documents and Settings\TEMP\Desktop\Samp Package\gamemodes\Syndicate.pwn(965) : error 035argument type mismatch (argument 2)
C:\Documents and Settings\TEMP\Desktop\Samp Package\gamemodes\Syndicate.pwn(966) : error 035argument type mismatch (argument 2)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


3 Errors

[Image: bemm.png]
Reply
#2
//E
Sain korda

PHP Code:
COMMAND:kustutamasin(playeridparams[]) {
    if(
pInfo[playerid][Adminlevel] > 1) {
        if(
IsPlayerInAnyVehicle(playerid)) {
            new 
vehicleid;
            
vehicleid GetPlayerVehicleID(playerid);
            
DestroyVehicle(vehicleid);
            
SendClientMessage(playerid0xFFFF00AA"Masin eemaldatud.");
        }  else 
SendClientMessage(playerid0xFFFF00AA"~r~VIGA: ~b~Sa ei ole sõidukis");
    }  else 
SendClientMessage(playerid0xFFFF00AA"~r~VIGA: ~b~Sul ei ole õigusi seda kasutada");
    return 
1;

[Image: bemm.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)