[Ajuda] Correjir erros
#1

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
Reply
#2

Retira o segunda 4 Ponto " 61.2315);"
Coloca assim
PHP код:
----------------------------------------------------------
339SetPlayerPos(playerid,1370.7323,2196.4946,14.2495);
370SetPlayerPos(playerid,1370.7323,2196.4946,14.2495); 
Reply
#3

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;
}
Reply
#4

https://sampwiki.blast.hk/wiki/GetPlayerMoney
Reply
#5

nгo consegui fiz isso no Pawn e quando vou a testar dб para comprar na mesma
Reply
#6

pawn Код:
if(GetPlayerMoney(playerid) < 50) return SendClientMessage(playerid,-1,"Voce nao tem grana");

Corrigido.
Reply
#7

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.
Reply
#8

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)
Reply
#9

Nossa nem notei valeu HAUSHAUSHAUSHAUS.


Arrumado!
Reply
#10

da para commprar na mesma.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)