23.08.2010, 15:21
pessoal,sou novo em pawn, mais ja sei fazer o basico!! estou tentando fazer uma pickup de que a pessoa so pode usar um comando quando estiver sobri ela, mais nao estou conseguindo, eu tentei com esse codigo
mais nao estou conseguindo de geito nenhum, da esses erros
quando eu crio a pickup normal de so a pessoa passa por cima, ja ganha os negocio,ai da certo,mais eu quero fazer de comprar coisas mais estando na pickup!! /compraarma mais estando dentro da pickup, alguem poderia mi ajuda?
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == lojadearmas) { // loja
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2002.2496,922.2856,10.8203))
{
GameTextForPlayer(playerid,"~w~ bem vindo", 6000,4); // Game text
if(strcmp(cmd, "/teste123", true) == 0) {
}
SendPlayerFormattedText(playerid,"===========================¦Armas¦===========================",0);
SendClientMessage(playerid,COLOR_WHITE,"/conteudo");
SendClientMessage(playerid,COLOR_WHITE,"/conteudo");
SendPlayerFormattedText(playerid,"===========================¦armas===========================", 0);
}
return 1;
}
pawn Код:
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(181) : error 017: undefined symbol "cmd"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(183) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(184) : error 004: function "SendPlayerFormattedText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(187) : error 004: function "SendPlayerFormattedText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(189) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(192) : warning 225: unreachable code
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(192) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(192) : error 004: function "MoneyGrubScoreUpdate" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(228) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(228) : error 004: function "OnPlayerConnect" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(263) : error 004: function "SendPlayerFormattedText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(264) : error 004: function "SendPlayerFormattedText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(265) : error 004: function "SendPlayerFormattedText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(273) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(276) : warning 225: unreachable code
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(276) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(276) : error 004: function "OnPlayerDisconnect" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(278) : error 017: undefined symbol "reason"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(282) : error 017: undefined symbol "reason"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(289) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(293) : warning 225: unreachable code
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(293) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(293) : error 004: function "OnPlayerCommandText" is not implemented
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(302) : error 017: undefined symbol "strtok"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(302) : error 033: array must be indexed (variable "cmd")
C:\DOCUME~1\jjoh\kloi\SAMPSE~1\GAMEMO~1\lvdm.pwn(304) : error 017: undefined symbol "cmdtext"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(319) : error 079: inconsistent return types (array & non-array)
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(327) : error 017: undefined symbol "cmdtext"
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(327) : warning 215: expression has no effect
C:\DOCUME~1\ddd\Desktop\SAMPSE~1\GAMEMO~1\lvdm.pwn(327) : error 001: expected token: ";", but found "]"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.