Please help me For Create Title Guns filterscript REP++
#1

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
Reply
#2

Search bar.
Reply
#3

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];

Reply
#4

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 
Reply
#5

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;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)