SendClientMessage(playerid,0xAA3333AA,"Type /getjob");
Originally Posted by ghost_in_dark
Код:
SendClientMessage(playerid,0xAA3333AA,"Type /getjob"); |
AddStaticPickup(1239, 2, 1487.5673,-1422.6677,11.8883); //Lawyer Registration thats the checkpoint here a yellow i
if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1487.5673,-1422.6677,11.8883)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job."); GettingJob[playerid] = 2; }
{ if(PlayerInfo[i][pJob] > 0) {} else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3); } }
SetPlayerCheckpoint(playerid, 1349.8916,-620.3745,109.1328, 3.0);
public OnPlayerEnterCheckpoint(playerid) { SendClientMessage(playerid, 0xFF9900AA, "Type /getjob to continue..."); return 1; if (strcmp("/getjob", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_WHITE, "Unable To Find A Job"); return 1; } }
if (strcmp("/getjob", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xAFAFAFAA, "You are not in any job centre!"); return 1; }
D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(118) : error 017: undefined symbol "PlayerToPoint" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(120) : error 017: undefined symbol "COLOR_LIGHTBLUE" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(121) : error 017: undefined symbol "COLOR_LIGHTBLUE" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(122) : error 017: undefined symbol "COLOR_LIGHTBLUE" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 017: undefined symbol "GettingJob" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : warning 215: expression has no effect D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 001: expected token: ";", but found "]" D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : error 029: invalid expression, assumed zero D:\Gta sa\GTA San Andreas\gamemodes\BRP.pwn(123) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Errors.
public OnPlayerCommandText(playerid, cmdtext[]) { if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,1487.5673,-1422.6677,11.8883)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Lawyer, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Lawyer, type /accept job."); GettingJob[playerid] = 2; return 1; } { if(PlayerInfo[i][pJob] > 0) {} else { GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3); } } return 0; }