Please help me For Create Title Guns filterscript REP++
#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


Messages In This Thread
Please help me For Create Title Guns filterscript REP++ - by Amunra - 18.12.2015, 03:18
Re: Please help me For Create Title Guns filterscript REP++ - by Trevor19012 - 18.12.2015, 03:21
Re: Please help me For Create Title Guns filterscript REP++ - by TwinkiDaBoss - 18.12.2015, 08:22
Re: Please help me For Create Title Guns filterscript REP++ - by Amunra - 18.12.2015, 09:51
Re: Please help me For Create Title Guns filterscript REP++ - by TwinkiDaBoss - 18.12.2015, 09:58

Forum Jump:


Users browsing this thread: 1 Guest(s)