Correjir erros -
LKING - 05.05.2013
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(339) : warning 202: number of arguments does not match definition
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(370) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 1664 bytes
Code size: 89244 bytes
Data size: 18740 bytes
Stack/heap size: 16384 bytes; estimated max. usage=1540 cells (6160 bytes)
Total requirements: 126032 bytes
2 Warnings.
----------------------------------------------------------
339: SetPlayerPos(playerid,1370.7323,2196.4946,14.2495, 61.2315);
370: SetPlayerPos(playerid,1370.7323,2196.4946,14.2495, 61.2315);
http://pastebin.com/ZN3YV8xp
Re: Correjir erros -
Mercenario - 05.05.2013
Retira o segunda 4 Ponto " 61.2315);"
Coloca assim
PHP код:
----------------------------------------------------------
339: SetPlayerPos(playerid,1370.7323,2196.4946,14.2495);
370: SetPlayerPos(playerid,1370.7323,2196.4946,14.2495);
Re: Correjir erros -
LKING - 05.05.2013
Resultou. Obrigado.
Mais uuma coisa.. Eu fiz um kit de armas mas queria por por exemplo, se ele nгo tiver dinheiro nгo o pode comprar.
Aqui estб o KIT
if(strcmp(cmdtext,"/kit3",true)==0)
{
SendClientMessage(playerid, 0xFF6347AA, "Tu agora tens o teu Kit De armas");
SendClientMessage(playerid, 0xFF6347AA, "{00BFFF}Eagle,{FFA500}Spas,M4,{FFA500}Tec,Sniper, {FFA500}Parachute.{00BFFF}");
GivePlayerMoney(playerid,-1000);//playerid = o player ,-1000 = o valor.. pode alterar ali mas deixar - pra diminuir o guito ao usar.
GivePlayerWeapon(playerid,24,5000);//26= arma 5000 = muniзгo
GivePlayerWeapon(playerid,25,5000);//32= arma 5000 = muniзгo
GivePlayerWeapon(playerid,26,5000);//16= arma 5000 = muniзгo
GivePlayerWeapon(playerid,27,5000);//33= arma 5000 = muniзгo
GivePlayerWeapon(playerid,28,5000);//33= arma 5000 = muniзгo
GivePlayerWeapon(playerid,31,5000);//33= arma 5000 = muniзгo
GivePlayerWeapon(playerid,32,5000);//33= arma 5000 = muniзгo
GivePlayerWeapon(playerid,34,5000);//33= arma 5000 = muniзгo
GivePlayerWeapon(playerid,46,5000);//33= arma 5000 = muniзгo
return 1;
}
Re: Correjir erros -
FixSkuL - 05.05.2013
https://sampwiki.blast.hk/wiki/GetPlayerMoney
Re: Correjir erros -
LKING - 05.05.2013
nгo consegui fiz isso no Pawn e quando vou a testar dб para comprar na mesma
Re: Correjir erros -
FixSkuL - 05.05.2013
pawn Код:
if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid,-1,"Voce nao tem grana");
Corrigido.
Re: Correjir erros -
LKING - 05.05.2013
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(297) : error 076: syntax error in the expression, or invalid function call
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Correjir erros -
mau.tito - 05.05.2013
Quote:
Originally Posted by FixSkuL
pawn Код:
if(GetPlayerMoney < 50) return SendClientMessage(playerid,-1,"Voce nao tem grana");
|
Kkkkkkk
Usa [PAWN] Code [*/PAWN] Sem o *
pawn Код:
if(GetPlayerMoney(playerid) < 50)
Re: Correjir erros -
FixSkuL - 05.05.2013
Nossa nem notei valeu HAUSHAUSHAUSHAUS.
Arrumado!
Re: Correjir erros -
LKING - 05.05.2013
da para commprar na mesma.