SA-MP Forums Archive
[None-Solved] Errors. Basic. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [None-Solved] Errors. Basic. (/showthread.php?tid=276742)



2 Basic Things. - Alex_Obando - 15.08.2011

pawn Код:
CMD:cc(playerid,params[])
{
    CMD:changecolor(playerid, params[])
}

Can that be?
I dont think so

pawn Код:
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(117) : warning 209: function "cmd_changecolor" should return a value
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(120) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(120) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
CMD:setvip(playerid, params[])
{
    new Player;
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "You need to be Owner to execute this command.");
    if (sscanf(params, "u", Player)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /setvip [ID]");
    if(!dini_Exists(PFile(playerid)))
    {
        dini_Create(PFile(playerid));
        dini_IntSet(PFile(playerid),"VipMember",1);
    }
    else if(dini_Exists(PFile(playerid)))
    {
        dini_IntSet(PFile(playerid),"VipMember",1);
    }
   
   
}
pawn Код:
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(135) : error 012: invalid function call, not a valid address
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(135) : warning 215: expression has no effect
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(135) : error 001: expected token: ";", but found ")"
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(135) : error 029: invalid expression, assumed zero
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\filterscripts\EventSystem.pwn(135) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.



Re: [None-Solved] Errors. Basic. - Tanush123 - 15.08.2011

return 1; under CMD:changecolor and what is line 120?


Respuesta: [None-Solved] Errors. Basic. - Alex_Obando - 15.08.2011

Its sscanf.
pawn Код:
//120
CMD:cc(playerid,params[])
Please help me in the 2 parts


Re: [None-Solved] Errors. Basic. - Tanush123 - 15.08.2011

dude we are not psychic what is link 135 and for cc just put those things in changecolor


Re: [None-Solved] Errors. Basic. - iPLEOMAX - 15.08.2011

for first one:
pawn Код:
CMD:cc(playerid,params[]) { return cmd_changecolor(playerid, params); }
for second: Hmm, show us "PFile(playerid)" function.


Re: [None-Solved] Errors. Basic. - DeadAhead - 15.08.2011

Код:
CMD:cc(playerid,params[])
{
    return cmd_changecolor(playerid, params)
}



Re: [None-Solved] Errors. Basic. - Scenario - 15.08.2011

Here you go:

pawn Код:
CMD:cc(playerid,params[])
{
    return cmd_changecolor(playerid, params);
}
pawn Код:
CMD:setvip(playerid, params[])
{
    new Player;
    if(IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, "You need to be Owner to execute this command.");
    if (sscanf(params, "u", Player)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /setvip [ID]");
    if(!dini_Exists(PFile(playerid)))
    {
        dini_Create(PFile(playerid));
        dini_IntSet(PFile(playerid),"VipMember",1);
    }
    else if(dini_Exists(PFile(playerid)))
    {
        dini_IntSet(PFile(playerid),"VipMember",1);
    }
    return 1;
}



Re: [None-Solved] Errors. Basic. - iPLEOMAX - 15.08.2011

-Removed by user-


Re: [None-Solved] Errors. Basic. - Scenario - 15.08.2011

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
You both missed ";" i guess..
Oh I did! Fixed.