how to fix this error in the gamemode
#1

When i am trying to add maps in the gamemode it stops responding how to fix it

and one more problem

Код:
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(22947) : warning 225: unreachable code
C:\Users\aman\Desktop\SATDM~RP V14\Gamemodes\SATDM_v14.pwn(23980) : warning 211: possibly unintended assignment
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
line no 22947

pawn Код:
return 1;
23980

pawn Код:
if(PlayerInfo[playerid][Level] = 5)
Reply
#2

pawn Код:
if(PlayerInfo[playerid][Level] == 5)
This is for the second one.

And show the full code please.
Reply
#3

Thank You For helping me
Reply
#4

for 22947 this is the code

pawn Код:
CMD:credits(playerid,params[]){
    #pragma unused params
    {
        new string[1029];
        strcat(string, "1. SeRVeR OwNeR ArE:[BTR]Mani, [BTR]Viper[NR], [BTR]ReD_DeViL\n");
        strcat(string, "2. SeRVeR Co-OwNeR ArE: NOT YET Searching for it\n");
        strcat(string, "3. Server Scripter By [BTR]ReD_DeViL,[BTR]Mani\n");
        strcat(string, "4.---------------->not yet/<---------------------\n\n");
        ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "Server Credits" , string,".:OK:.", ".:Cancel:.");
        return 0;
    }
    return 1;
}
Reply
#5

Код:
CMD:credits(playerid,params[])
{
    #pragma unused params
    
        new string[1029];
        strcat(string, "1. SeRVeR OwNeR ArE:[BTR]Mani, [BTR]Viper[NR], [BTR]ReD_DeViL\n");
        strcat(string, "2. SeRVeR Co-OwNeR ArE: NOT YET Searching for it\n");
        strcat(string, "3. Server Scripter By [BTR]ReD_DeViL,[BTR]Mani\n");
        strcat(string, "4.---------------->not yet/<---------------------\n\n");
        ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "Server Credits" , string,".:OK:.", ".:Cancel:.");
        return 1;
}
Reply
#6

but when i am compiling the error is coming so much
Reply
#7

what errors?
Reply
#8

nothing its fixed thank you Rittik
Reply


Forum Jump:


Users browsing this thread: