if(strcmp(cmd, "/x1convite", true) == 0) {
new string[256];
new PlayerName2[MAX_PLAYER_NAME];
new RecName[MAX_PLAYER_NAME];
GetPlayerName(recieverid, RecName, sizeof(RecName));
GetPlayerName(playerid, PlayerName2, sizeof(PlayerName2));
if(recieverid != playerid)
{
GetPlayerName(playerid, PlayerName2, sizeof(PlayerName2));
GetPlayerName(recieverid, RecName, sizeof(RecName));
format(string, sizeof(string), "[X1-GArfield] %s Convidou Vocк Para um Duelo X1", PlayerName2);
SendClientMessage(recieverid,COR, string);
format(string, sizeof(string), "[X1-GArfield] Vocк Convidou %s Para um Duelo X1", RecName,recieverid);
SendClientMessage(playerid,COR, string);
SetPlayerPos(CORDENADA);
}
else
{
format(string, sizeof(string), "[ERRO] Esse player nгo esta Online!", recieverid);
SendClientMessage(playerid, COLOR_RED, string);
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,Raio,CordX,CordY,CordZ))
{
SendClientMessage(playerid,COR,"Vocк nгo pode digitar nenhum cmd aqui.");
}
}
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(422) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(425) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(427) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(430) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(432) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(433) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(434) : error 017: undefined symbol "COR"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(435) : warning 213: tag mismatch
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(435) : warning 202: number of arguments does not match definition
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(439) : error 017: undefined symbol "recieverid"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(5769) : warning 204: symbol is assigned a value that is never used: "randSpawn"
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(6139) : warning 209: function "OnPlayerKeyStateChange" should return a value
C:\DOCUME~1\SEUNOM~1\Desktop\COLOCA~1\CMD03V~1.0\GAMEMO~1\gangster.pwn(8756) : warning 203: symbol is never used: "OnPlayerUpdate2"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
new recieverid = algumacoisa;
Originally Posted by Comando_DS
2° quero um sistema por exemplo um player digita /x1 [id] ae manda pro [id] aceitar ou recusar o x1, se ele aceitar teleporta os dois players pra uma coordenada, congela os dois, e inicia a contagem pra comessar a corrida e descongela os dois, sei q o codigo й dificil mais nao sei por onde comessar espero que possao me ajudar ae vlw.
|
Originally Posted by andmeida10
por baixo do OnPlayerCommandText:
pawn Код:
pawn Код:
|