new pontosmerc = 0;
new pontosag = 0;
new Text:Textdraws[2];
//========================SCOREMERCENARIO=================================//
Textdraws[0] = TextDrawCreate(195.000000, 418.000000, "Score: ");
TextDrawShowForAll(Textdraws[0]);
TextDrawBackgroundColor(Textdraws[0], 255);
TextDrawFont(Textdraws[0], 3);
TextDrawLetterSize(Textdraws[0], 0.699999, 2.899999);
TextDrawColor(Textdraws[0], -16776961);
TextDrawSetOutline(Textdraws[0], 1);
TextDrawSetProportional(Textdraws[0], 1);
Textdraws[1] = TextDrawCreate(372.000000, 418.000000, "Score: ");
TextDrawShowForAll(Textdraws[1]);
TextDrawBackgroundColor(Textdraws[1], 255);
TextDrawFont(Textdraws[1], 3);
TextDrawLetterSize(Textdraws[1], 0.699999, 2.899999);
TextDrawColor(Textdraws[1], -16776961);
TextDrawSetOutline(Textdraws[1], 1);
TextDrawSetProportional(Textdraws[1], 1);
//========================================================================//
public OnPlayerEnterCheckpoint(playerid)
{
pontosag += 1;
new pName[MAX_PLAYER_NAME], info[254];
new VehID = GetPlayerVehicleID(playerid);
if(VehID == Caminhao[0])
{
if(Org[playerid] == 1)
{
if(CPS_IsPlayerInCheckpoint(playerid, CheckAg))
{
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(info, sizeof(info), "| ENTREGA | O Caminhгo dos Mercenбrios foi entregue pelo {FF7403}Agente {9DAD80}( %s ) {33CCFF}ao seu destino!", pName);
SendClientMessageToAll(AzulClaro,info);
SetPlayerScore(playerid, GetPlayerScore(playerid) +1);
GivePlayerMoney(playerid, 8000);
pontosmerc = pontosmerc +1
format(info,sizeof(info)," %d",pontosmerc));
PlayerTextDrawSetString(Textdraws[1](playerid), info));
TextDrawShowForAll(playerid, Textdraws[1]);
SetVehicleToRespawn(Caminhao[0]);
DisablePlayerCheckpoint(playerid);
}
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,Vermelho, "| ERRO | Esse nгo й o caminhгo que entrega nessa posiзгo!");
return 1;
}
}
}
}
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 001: expected token: ";", but found "-identifier-"
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 001: expected token: ";", but found ")"
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 029: invalid expression, assumed zero
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PlayerTextDrawSetString(Textdraws[1](playerid), info));
PlayerTextDrawSetString(Textdraws[1](playerid), info));
PlayerTextDrawSetString(Textdraws[1][playerid], info));
new Text:Textdraws[2];
new Text:Textdraws[MAX_PLAYERS][2];
TextDrawSetString(Textdraws[playerid][1], info));
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(92) : error 033: array must be indexed (variable "Textdraws")
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(93) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(94) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(95) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(96) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(97) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(98) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(99) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(101) : error 033: array must be indexed (variable "Textdraws")
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(102) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(103) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(104) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(105) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(106) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(107) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(108) : error 035: argument type mismatch (argument 1)
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 001: expected token: ";", but found "-identifier-"
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 001: expected token: ";", but found ")"
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : error 029: invalid expression, assumed zero
C:\Users\lucas\Documents\SA-MP\servidor em construзгo\gamemodes\inicio.pwn(416) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
20 Errors.
PlayerTextDrawSetString(Textdraws[1], info));
TextDrawSetString(Textdraws[1], info));
public OnPlayerEnterCheckpoint(playerid)
{
pontosag += 1;
new pName[MAX_PLAYER_NAME], info[B][254][/B];
new Text:Textdraws[2];
new PlayerText:Textdraws[2];
PlayerTextDrawSetString(Textdraws[1](playerid), info));
PlayerTextDrawSetString(playerid,Textdraws[1], info);
Textdraws[0] = PlayerTextDrawCreate(195.000000, 418.000000, "Score: ");
TextdrawshowForAll(Textdraws[0]);
PlayerTextDrawBackgroundColor(Textdraws[0], 255);
PlayerTextDrawFont(Textdraws[0], 3);
PlayerTextDrawLetterSize(Textdraws[0], 0.699999, 2.899999);
PlayerTextDrawColor(Textdraws[0], -16776961);
TextdrawsetOutline(Textdraws[0], 1);
TextdrawsetProportional(Textdraws[0], 1);
Textdraws[1] = PlayerTextDrawCreate(372.000000, 418.000000, "Score: ");
TextdrawshowForAll(Textdraws[1]);
PlayerTextDrawBackgroundColor(Textdraws[1], 255);
PlayerTextDrawFont(Textdraws[1], 3);
PlayerTextDrawLetterSize(Textdraws[1], 0.699999, 2.899999);
PlayerTextDrawColor(Textdraws[1], -16776961);
TextdrawsetOutline(Textdraws[1], 1);
TextdrawsetProportional(Textdraws[1], 1);
Mude a variavel de:
PHP код:
PHP код:
PHP код:
|