SA-MP Forums Archive
BOOOM OMFG - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: BOOOM OMFG (/showthread.php?tid=112105)



BOOOM OMFG - PANNA - 05.12.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/info", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"build: 1 - owner: Wanted");
        SendClientMessage(playerid,0xFF6600AA,"Bigger DM area will be added when more people play!");
        return 1;
    }
        if (strcmp("/rules", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"NO cheats - NO hacks - NO spam - NO flood - NO porn - NO racism.");
        SendClientMessage(playerid,0xFF6600AA,"Follow these rules and you will not have any problems!");
        return 1;
    }
    if(strcmp("/industry", cmdtext, true, 9) == 0)
{
new industry = random(9);
if(industry == 1)
{
 SetPlayerPos(playerid,238.0864,1476.0219,10.5859,237.2410);
}
if(industry == 2)
{
 SetPlayerPos(playerid,189.9351,1474.7192,10.5859,278.6013);
}
if(industry == 3)
{
 SetPlayerPos(playerid,184.3969,1448.9823,10.5912,177.9713);
}
if(industry == 4)
{
 SetPlayerPos(playerid,131.8947,1429.0649,26.1085,172.0905);
}
if(industry == 5)
{
 SetPlayerPos(playerid,163.0905,1424.8374,25.8926,321.5285);
}
if(industry == 6)
{
 SetPlayerPos(playerid,179.3968,1407.6254,10.5859,335.7491);
}
if(industry == 7)
{
 SetPlayerPos(playerid,193.3889,1373.5253,23.7344,289.3016);
}
    if (strcmp("/teles", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"/industry - /da - /hnh");
        return 1;
    }
        if(strcmp("/hnh", cmdtext, true, 4) == 0)
{
new hnh = random(3);
if(hnh == 1)
{
 SetPlayerPos(playerid,274.7902,1954.4342,17.6406,273.3052);
}
if(hnh == 2)
{
 SetPlayerPos(playerid,275.2077,1988.8748,17.6406,270.1484);
}
if(hnh == 3)
{
SetPlayerPos(playerid,273.7419,2024.2915,17.6406,270.1484);
}
        if(strcmp("/da", cmdtext, true, 3) == 0)
{
new da = random(6);
if(da == 1)
{
 SetPlayerPos(playerid,-58.0068,2509.9956,24.5195,76.6138);
}
if(da == 2)
{
 SetPlayerPos(playerid,-25.5631,2493.7495,18.7070,80.0605);
}
if(da == 3)
{
SetPlayerPos(playerid,164.9055,2505.0134,16.4844,223.5452);
}
if(da == 4)
{
 SetPlayerPos(playerid,326.5273,2506.4158,16.4844,215.0850);
}
if(da == 5)
{
SetPlayerPos(playerid,400.8727,2495.0579,19.0163,268.6655);
}
if(da == 5)
{
SetPlayerPos(playerid,407.7825,2504.4922,19.0163,88.8339);
}
    return 1;
{

    return 0;
}
somewhere i forgot a bracket but i cant find it




Re: BOOOM OMFG - Joe Staff - 05.12.2009

Right after
pawn Код:
if(industry == 7)
{
 SetPlayerPos(playerid,193.3889,1373.5253,23.7344,289.3016);
}


It should look like this

pawn Код:
if(industry == 7)
{
 SetPlayerPos(playerid,193.3889,1373.5253,23.7344,289.3016);
}
return 1;
}
if (strcmp("/teles", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,0xFF6600AA,"/industry - /da - /hnh");
return 1;
}



Re: BOOOM OMFG - PANNA - 05.12.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/info", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"build: 1 - owner: Wanted");
        SendClientMessage(playerid,0xFF6600AA,"Bigger DM area will be added when more people play!");
        return 1;
    }
        if (strcmp("/rules", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"NO cheats - NO hacks - NO spam - NO flood - NO porn - NO racism.");
        SendClientMessage(playerid,0xFF6600AA,"Follow these rules and you will not have any problems!");
        return 1;
    }
    if(strcmp("/industry", cmdtext, true, 9) == 0)
{
new industry = random(9);
if(industry == 1)
{
 SetPlayerPos(playerid,238.0864,1476.0219,10.5859,237.2410);
}
if(industry == 2)
{
 SetPlayerPos(playerid,189.9351,1474.7192,10.5859,278.6013);
}
if(industry == 3)
{
 SetPlayerPos(playerid,184.3969,1448.9823,10.5912,177.9713);
}
if(industry == 4)
{
 SetPlayerPos(playerid,131.8947,1429.0649,26.1085,172.0905);
}
if(industry == 5)
{
 SetPlayerPos(playerid,163.0905,1424.8374,25.8926,321.5285);
}
if(industry == 6)
{
 SetPlayerPos(playerid,179.3968,1407.6254,10.5859,335.7491);
}
if(industry == 7)
{
 SetPlayerPos(playerid,193.3889,1373.5253,23.7344,289.3016);
}
    return 1;
    }
    if (strcmp("/teles", cmdtext, true, 5) == 0)
    {
        SendClientMessage(playerid,0xFF6600AA,"/industry - /da - /hnh");
        return 1;
    }
        if(strcmp("/hnh", cmdtext, true, 4) == 0)
{
new hnh = random(3);
if(hnh == 1)
{
 SetPlayerPos(playerid,274.7902,1954.4342,17.6406,273.3052);
}
if(hnh == 2)
{
 SetPlayerPos(playerid,275.2077,1988.8748,17.6406,270.1484);
}
if(hnh == 3)
{
SetPlayerPos(playerid,273.7419,2024.2915,17.6406,270.1484);
}
        if(strcmp("/da", cmdtext, true, 3) == 0)
{
new da = random(6);
if(da == 1)
{
 SetPlayerPos(playerid,-58.0068,2509.9956,24.5195,76.6138);
}
if(da == 2)
{
 SetPlayerPos(playerid,-25.5631,2493.7495,18.7070,80.0605);
}
if(da == 3)
{
SetPlayerPos(playerid,164.9055,2505.0134,16.4844,223.5452);
}
if(da == 4)
{
 SetPlayerPos(playerid,326.5273,2506.4158,16.4844,215.0850);
}
if(da == 5)
{
SetPlayerPos(playerid,400.8727,2495.0579,19.0163,268.6655);
}
if(da == 5)
{
SetPlayerPos(playerid,407.7825,2504.4922,19.0163,88.8339);
}
    return 1;
{

    return 0;
}
i got it like that but i still got the errors.


Re: BOOOM OMFG - [NYRP]Mike. - 05.12.2009

pawn Код:
if(strcmp("/da", cmdtext, true, 3) == 0)
{
new da = random(6);
if(da == 1)
{
 SetPlayerPos(playerid,-58.0068,2509.9956,24.5195,76.6138);
}
if(da == 2)
{
 SetPlayerPos(playerid,-25.5631,2493.7495,18.7070,80.0605);
}
if(da == 3)
{
SetPlayerPos(playerid,164.9055,2505.0134,16.4844,223.5452);
}
if(da == 4)
{
 SetPlayerPos(playerid,326.5273,2506.4158,16.4844,215.0850);
}
if(da == 5)
{
SetPlayerPos(playerid,400.8727,2495.0579,19.0163,268.6655);
}
if(da == 5)
{
SetPlayerPos(playerid,407.7825,2504.4922,19.0163,88.8339);
}
return 1;
{

return 0;
}
after the return 1; you have a { instead of a }...

-©un3o.


Re: BOOOM OMFG - PANNA - 05.12.2009

i still got the errors


update:

weeeee it works