Oko GetPlayerSkillLevel

Započeo ★★Corona★★, Mart 19, 2019, 23:43:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): E ovako radim neki mali sistemcic za weapon skill, ali mi izbacuje ove erore imam includeove potrebne, ne znam vise sta da radim jel zna neko sta fali ovde u cemu je problem? ili ako ima neki solidan sistem za skillove potrebno mi je klasicno ono za svaki kill da dobije npr 5 skilova za to oruzje sa kim je ubio igraca hvala!
Kod:
Dio skripte:
[pawn]public OnPlayerDeath( playerid, killerid, reason ) {
    if(killerid != INVALID_PLAYER_ID)
    {
        new skill = 0;
        switch(GetPlayerWeapon(killerid))
        {
            case 22: skill = WEAPONSKILL_PISTOL;
            case 23: skill = WEAPONSKILL_PISTOL_SILENCED;
            //... add all other types you want
        }
        SetPlayerSkillLevel(killerid, skill, GetPlayerSkillLevel(killerid, skill) + 10);
    }[/pawn]
[pawn]CMD:skilovi(playerid)
{
    new string[144];
    format(string, sizeof(string) "Pistol: %i/1000", GetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL));//this is for pistol, it will show the pistol skills in client message form
    SendClientMessage(playerid, -1, string);
    //...add more if you want
    return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]??ECRP.pwn(33066) : error 017: undefined symbol "GetPlayerSkillLevel"
??\ECRP.pwn(54359) : error 001: expected token: ",", but found "-string-"
??\ECRP.pwn(54359) : warning 215: expression has no effect
??\ECRP.pwn(54359) : error 017: undefined symbol "GetPlayerSkillLevel"
??\ECRP.pwn(54359) : error 029: invalid expression, assumed zero
??\ECRP.pwn(54359) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.4           Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): //


Ocigledno ti je Include zastareo, ili ga nisi stavio na vrh skripte (pre svih callback, varijabli itd..). Azuriraj include, i radice.
• Website: www.vasic.dev
Web Development & Cyber Security

Update includes  :)


I LOVE VODKA AND SLAV COUNTRY'S