17.06.2011, 08:34
C:\Users\Adrian\Desktop\New folder\2.pwn(152) : warning 217: loose indentation
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gotols", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1519.8167,-1675.5597,13.5469);
SendClientMessage(playerid,COLOR_YELLOW,"You have teleported");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"(Info)Wel come to my Server's HELP command!");
SendClientMessage(playerid,COLOR_YELLOW,"(Info)Hop e you enjoy the tutorial!");
return 1;
}
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/unlockcars", cmdtext, true, 10) == 0)
{
Unlockmycars(playerid);
return 1;
}
if (strcmp("/lockcars", cmdtext, true, 10) == 0)
{
Lockmycars(playerid);
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
Anyone can also give me the link of scripting RP server tutorial??
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gotols", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1519.8167,-1675.5597,13.5469);
SendClientMessage(playerid,COLOR_YELLOW,"You have teleported");
return 1;
}
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"(Info)Wel come to my Server's HELP command!");
SendClientMessage(playerid,COLOR_YELLOW,"(Info)Hop e you enjoy the tutorial!");
return 1;
}
if (strcmp("/heal", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have been healed!");
return 1;
}
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "(INFO) You have commited suicide!");
return 1;
}
if (strcmp("/unlockcars", cmdtext, true, 10) == 0)
{
Unlockmycars(playerid);
return 1;
}
if (strcmp("/lockcars", cmdtext, true, 10) == 0)
{
Lockmycars(playerid);
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
Anyone can also give me the link of scripting RP server tutorial??