Stupid Pawno error code 30. :P
#3

PHP код:
#include <a_samp>
#define blue 0x0A16BF 
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/LSHospital"true)) // teleports to the hospital in Los Santos
    
{
        
SetPlayerPos(playerid2029.9611811413.18493616.998857);
        
SendClientMessage(playeridblue"You have teleported to Los Santos Hospital.");
        return 
1;
    }
    if(!
strcmp(cmdtext"/LSAirport"true)) // teleports to the airport in LS
    
{
        
SetPlayerPos(playerid1642.62, -2333.7913.55);
        
SendClientMessage(playeridblue"You have teleported to Los Santos Airport.");
        return 
1;
    }
    if(!
strcmp(cmdtext"/LSPD"true)) // teleports to the police department in Los Santos
    
{
        
SetPlayerPos(playerid1553.1755371675.65319816.195312);
        
SendClientMessage(playeridblue"You have teleported to Los Santos Police Department.");
        return 
1;
    }
    return 
0;

Look this: https://sampwiki.blast.hk/wiki/Using_strcmp()
Reply


Messages In This Thread
Stupid Pawno error code 30. :P - by rabexann - 26.06.2012, 15:00
Re: Stupid Pawno error code 30. :P - by rabexann - 26.06.2012, 15:02
Re: Stupid Pawno error code 30. :P - by Speed++ - 26.06.2012, 15:04
Re: Stupid Pawno error code 30. :P - by rabexann - 26.06.2012, 15:09
Re: Stupid Pawno error code 30. :P - by Strech - 26.06.2012, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)