SA-MP Forums Archive
how to fix this error in the gamemode - 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: how to fix this error in the gamemode (/showthread.php?tid=521203)



how to fix this error in the gamemode - ReD_DeVi - 22.06.2014

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)



Re: how to fix this error in the gamemode - Rittik - 22.06.2014

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

And show the full code please.


Re: how to fix this error in the gamemode - ReD_DeVi - 22.06.2014

Thank You For helping me


Re: how to fix this error in the gamemode - ReD_DeVi - 22.06.2014

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



Re: how to fix this error in the gamemode - Rittik - 22.06.2014

Код:
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;
}



Re: how to fix this error in the gamemode - ReD_DeVi - 22.06.2014

but when i am compiling the error is coming so much


Re: how to fix this error in the gamemode - Youssef214 - 22.06.2014

what errors?


Re: how to fix this error in the gamemode - ReD_DeVi - 22.06.2014

nothing its fixed thank you Rittik