SA-MP Forums Archive
Pawno compiler has stopped working - 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: Pawno compiler has stopped working (/showthread.php?tid=307054)



Pawno compiler has stopped working - vincee - 28.12.2011

I don't know what's up with my script, I'm trying to make a radio (my sd private radio works fine) which shows the messages to FD and SD but if SD produce a message it will say
Код:
(IDCOM) SD-%i %s : %s
and fd, simply adding FD

When I compile I just get not responding/stopped working which means theres something not put correctly and I cant find it.

pawn Код:
if( !strcmp( cmdtext, "/r", true, 2 ) )
    {
        if( !cmdtext[3] ) return SendClientMessage( playerid, COLOR_WHITE, "Usage /r [TEXT]" );
        {
            new str[128], name[24];
            new string[128], name[24];
            GetPlayerName( playerid, name, 24 );
            if(ispolice[playerid] == 1)
            {
                format(str, sizeof str, "(IDCOM) SD %s : %s",name, cmdtext[7] );
                SendAllGovMessage(COLOR_WHITE, str);
                return 1;
            }
            if(isfd[playerid] == 1)
            {
                format(string, sizeof string, "(IDCOM) FD %s : %s",pname, cmdtext[7] );
                SendAllGovMessage(COLOR_BRIGHTRED, string);
                return 1;
            }
        }
    }