03.09.2012, 12:43
C:\Program Files\Rockstar Games\GTA San Andreas\[TR-EN] Blue Laser DM Server\gamemodes\test.pwn(169) : warning 225: unreachable code
C:\Program Files\Rockstar Games\GTA San Andreas\[TR-EN] Blue Laser DM Server\gamemodes\test.pwn(192) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Help", cmdtext, true, 10) == 0)
{
if (strcmp("/Story", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREY,"/Story: Welcome Our Server , This is a Team DM Server");
return 1;
}
return 0;
if (strcmp("/34", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,100);
return 1;
}
return 0;
}
if (strcmp("/killyourself", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_BLUE,"OMG! What a bad.");
return 1;
}
return 0;
}
if (strcmp("/skyscraper", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1467.9734,-873.4727,56.1046);
SendClientMessage(playerid,COLOR_BLUE,"IT IS TIME FOR JUMPING!");
SetObjectPos(46,1467.9734,-873.4727,56.1046);
}
last !
C:\Program Files\Rockstar Games\GTA San Andreas\[TR-EN] Blue Laser DM Server\gamemodes\test.pwn(192) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Help", cmdtext, true, 10) == 0)
{
if (strcmp("/Story", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREY,"/Story: Welcome Our Server , This is a Team DM Server");
return 1;
}
return 0;
if (strcmp("/34", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,100);
return 1;
}
return 0;
}
if (strcmp("/killyourself", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_BLUE,"OMG! What a bad.");
return 1;
}
return 0;
}
if (strcmp("/skyscraper", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1467.9734,-873.4727,56.1046);
SendClientMessage(playerid,COLOR_BLUE,"IT IS TIME FOR JUMPING!");
SetObjectPos(46,1467.9734,-873.4727,56.1046);
}
last !