Help me pleaese
#1

C:\Users\Itzgamecast\Desktop\UVRP SCRIPT\gamemodes\UGRP [NEW].pwn(82679) : error 010: invalid function or declaration
C:\Users\Itzgamecast\Desktop\UVRP SCRIPT\gamemodes\UGRP [NEW].pwn(82682) : error 010: invalid function or declaration
C:\Users\Itzgamecast\Desktop\UVRP SCRIPT\gamemodes\UGRP [NEW].pwn(82685) : error 010: invalid function or declaration



Код:
				if(GetPVarInt(playerid, "Cuffed") == 0)
				{
    	            switch(PlayerInfo[playerid][pChatStyle])
   	                {
    	                case 0: ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
                        case 1: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkA", 3.1,0,1,1,1,1);
                        case 2: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkB", 3.1,0,1,1,1,1);
                        case 3: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkC", 3.1,0,1,1,1,1);
                        case 4: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkD", 3.1,0,1,1,1,1);
                        case 5: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkE", 3.1,0,1,1,1,1);
                        case 6: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkF", 3.1,0,1,1,1,1);
                        case 7: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkG", 3.1,0,1,1,1,1);
                        case 8: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkH", 3.1,0,1,1,1,1);
   	                }
   	                new time=strlen(text)*100;
    	            SetTimerEx("StopTalking",time,0,"i",playerid);
    	        }
			}
    	    return 0;
  			}
    	else <<<<<<<<<< 82679
    	{
			SendClientMessage(playerid,COLOR_LIGHTRED,"You are either dead/un-logged/muted to use this !");
    	    return 0; <<<<< Error 82682
    	}
	}
	return 1; <<<<< Error 82685
}
Reply
#2

Post the whole code, not just a part of it.
Reply
#3

pawn Код:
}

                    }
                }
                if(GetPVarInt(playerid, "Cuffed") == 0)
                {
                    switch(PlayerInfo[playerid][pChatStyle])
                    {
                        case 0: ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
                        case 1: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkA", 3.1,0,1,1,1,1);
                        case 2: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkB", 3.1,0,1,1,1,1);
                        case 3: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkC", 3.1,0,1,1,1,1);
                        case 4: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkD", 3.1,0,1,1,1,1);
                        case 5: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkE", 3.1,0,1,1,1,1);
                        case 6: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkF", 3.1,0,1,1,1,1);
                        case 7: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkG", 3.1,0,1,1,1,1);
                        case 8: ApplyAnimation(playerid, "GANGS", "prtial_gngtlkH", 3.1,0,1,1,1,1);
                    }
                    new time=strlen(text)*100;
                    SetTimerEx("StopTalking",time,0,"i",playerid);
                }
            }
            return 0;
            }
            else
            {
            SendClientMessage(playerid,COLOR_LIGHTRED,"You are un-logged to use this !");
            return 0;
        }
    }
    return 1;
}


This is the most of the code as this is on - onplayertext

Also the indentation is fine this [code] ruins it
Reply
#4

Any help
Reply
#5

If what you're saying is true (code ruins it)
use
Reply
#6

Problem with brackets. The end of the callback is at the first "return 0;" after the timer and all the rest of the code is outside of the callback. Indent the code good and you'll realize where the mistake is.
Reply
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Problem with brackets. The end of the callback is at the first "return 0;" after the timer and all the rest of the code is outside of the callback. Indent the code good and you'll realize where the mistake is.
I am sorry but i don't get what you mean is there any way you can fix it for me many thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)