help with some error
#2

Here you go. I have no idea why you had }else{ in there but yea here.

pawn Код:
if(strcmp(cmdtext,"/afk", true, 4) == 0)
 {
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, 24);
   SendClientMessage(playerid, 0xFF0000AA, "You have gone AFK..");
   SetPlayerVirtualWorld(playerid, 1337);
   TogglePlayerControllable(playerid, 0);
   return 1;
 }
 if(strcmp(cmdtext, "/back", true, 5) == 0)
 {
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, 24);
   SendClientMessage(playerid, 0xFF0000AA, "You've Back from AFK..");
   SetPlayerVirtualWorld(playerid, 0);
   TogglePlayerControllable(playerid, 1);
   return 1;
 }
 if(strcmp(cmdtext, "/aa", true) == 0)
 {
   SetVehiclePos(GetPlayerVehicleID(playerid), 1404.1338,2436.8818,16.5000);
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid, 1404.1338,2436.8818,16.5000);
   GameTextForPlayer(playerid,"Abandon Airport",4000,6);
   return 1;
 }
 if(strcmp(cmdtext, "/islanddm", true) == 0)
 {
   SetPlayerInterior(playerid, 0);
   RemovePlayerFromVehicle(playerid);
   ResetPlayerWeapons(playerid);
   SetPlayerPos(playerid, 1372.8043,-3284.4734,3.1422);
   GivePlayerWeapon(playerid, 22, 5200);
   GivePlayerWeapon(playerid, 27, 1100);
   GivePlayerWeapon(playerid, 31, 4000);
   GameTextForPlayer(playerid,"Island Dm",4000,6);
   return 1;
 }
 if(strcmp(cmdtext, "/lvairstunt", true) == 0)
 {
   SetVehiclePos(GetPlayerVehicleID(playerid), 1066.05,1319.98,247.50);
   SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
   SetPlayerInterior(playerid, 0);
   SetPlayerPos(playerid,1066.05,1319.98,247.50);
   GameTextForPlayer(playerid,"Use /Carmenu for vehicles!!",4000,6);
   return 1;
 }
Reply


Messages In This Thread
help with some error - by scottygraham1990 - 27.09.2012, 23:18
Re: help with some error - by ViruZz - 27.09.2012, 23:22
Re: help with some error - by mamorunl - 27.09.2012, 23:54
Re: help with some error - by scottygraham1990 - 28.09.2012, 07:32
Re: help with some error - by scottygraham1990 - 28.09.2012, 07:44
Re: help with some error - by mamorunl - 28.09.2012, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)