SA-MP Forums Archive
Please help me For Create Title Guns filterscript REP++ - 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)
+--- Thread: Please help me For Create Title Guns filterscript REP++ (/showthread.php?tid=596448)



Please help me For Create Title Guns filterscript REP++ - Amunra - 18.12.2015

Please Help me to create Filterscript Title guns


Please help Me Create Title guns filterscript,, if player get 200 kill++ Player gets Title Junior Killer title
And if player get 300kill++ Player get Senior Killer title

Please Help me to create this filterscript With dialog system !!

Please reply your Help to me


Re: Please help me For Create Title Guns filterscript REP++ - Trevor19012 - 18.12.2015

Search bar.


Re: Please help me For Create Title Guns filterscript REP++ - TwinkiDaBoss - 18.12.2015

PHP код:
public OnPlayerSpawn(playerid) {
    
SetPlayerRank(playerid);
    return 
true;
}




SetPlayerRank(playerid) {
    new 
rankname[24];
    switch(
rankname) {
        case 
.. 200rankname "Rank 1"//if their score is from 0 to 200
        
case 201 .. 300rankname "Junior Killer"//if their score is from 201 to 300
        
case 301 .. 400rankname "Senior Killer"//if their score is from 301 to 400
        
default: rankname "Master"//if its anything else
    
}
    return 
rankname[24];




Re: Please help me For Create Title Guns filterscript REP++ - Amunra - 18.12.2015

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
PHP код:
public OnPlayerSpawn(playerid) {
    
SetPlayerRank(playerid);
    return 
true;
}
SetPlayerRank(playerid) {
    new 
rankname[24];
    switch(
rankname) {
        case 
.. 200rankname "Rank 1"//if their score is from 0 to 200
        
case 201 .. 300rankname "Junior Killer"//if their score is from 201 to 300
        
case 301 .. 400rankname "Senior Killer"//if their score is from 301 to 400
        
default: rankname "Master"//if its anything else
    
}
    return 
rankname[24];

I got this How to fix ?

PHP код:
.pwn(280) : error 033: array must be indexed (variable "-unknown-")
.
pwn(286) : error 032: array index out of bounds (variable "rankname")
.
pwn(278) : warning 203symbol is never used"playerid"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 



Re: Please help me For Create Title Guns filterscript REP++ - TwinkiDaBoss - 18.12.2015

Oh shit my bad lol wasnt paying attention
PHP код:
SetPlayerRank(playerid) {
    new 
rankname[24];
    switch(
GetPlayerScore(playerid)) {
        case 
.. 200rankname "Rank 1"//if their score is from 0 to 200
        
case 201 .. 300rankname "Junior Killer"//if their score is from 201 to 300
        
case 301 .. 400rankname "Senior Killer"//if their score is from 301 to 400
        
default: rankname "Master"//if its anything else
    
}
    return 
rankname;