SA-MP Forums Archive
Some Help Please ?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some Help Please ?? (/showthread.php?tid=622745)



Some Help Please ?? - aymane123 - 26.11.2016

anyone help me with these errors:
Код:
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(128) : fatal error 107: too many error messages on one line
Here Is The Lines Of Errors:
Line 59:
Код:
CMD:piss(playerid,parmas[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING); /line 59
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}
Line 71:
Код:
CMD:carry(playerid,parmas[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY); //line 71
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}
Line 128:
Код:
CMD:animhelp(playerid,params[])
{
    SendClientMessage(playerid, COLOR_ORANGE, /cigar,/drinkbeer,/phone,/sit.); //line 128
    SendClientMessage(playerid, COLOR_ORANGE, /dance1,/dance2,/dance3,dance4.);
    SendClientMessage(playerid, COLOR_ORANGE, /stopphone,/carry,/cola,/sit.);
    SendClientMessage(playerid, COLOR_ORANGE, /hundsup,/cuffed,Made By Aymane.);
       return 1;
}
And Thanks For Helping.


Re: Some Help Please ?? - GodLight - 26.11.2016

CMD:animhelp(playerid,params[])
{
SendClientMessage(playerid, COLOR_ORANGE, /cigar,/drinkbeer,/phone,/sit.); //line 128
SendClientMessage(playerid, COLOR_ORANGE, /dance1,/dance2,/dance3,dance4.);
SendClientMessage(playerid, COLOR_ORANGE, /stopphone,/carry,/cola,/sit.);
SendClientMessage(playerid, COLOR_ORANGE, /hundsup,/cuffed,Made By Aymane.);
return 1;
}

Return must be with 1tab,not 2.


Re: Some Help Please ?? - Runn3R - 26.11.2016

pawn Код:
CMD:carry(playerid,params[])
pawn Код:
CMD:piss(playerid,params[])
You're missing the quotes
pawn Код:
SendClientMessage(playerid, COLOR_ORANGE, "/cigar,/drinkbeer,/phone,/sit."); //line 128
SendClientMessage(playerid, COLOR_ORANGE, "/dance1,/dance2,/dance3,dance4.");
SendClientMessage(playerid, COLOR_ORANGE, "/stopphone,/carry,/cola,/sit.");
SendClientMessage(playerid, COLOR_ORANGE, "/hundsup,/cuffed,Made By Aymane.");
Should recommend you to read the tutorials.


Re: Some Help Please ?? - aymane123 - 26.11.2016

more explaination please.


Re: Some Help Please ?? - aymane123 - 26.11.2016

I fixed some but i still have this:
Код:
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(59) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(71) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Administrateur\Bureau\anims.pwn(133) : warning 217: loose indentation



Re: Some Help Please ?? - BrianFaria - 26.11.2016

Код:
#define SPECIAL_ACTION_PISSING 68 //Put this on top of everything
#define SPECIAL_ACTION_CARRY 25 //Put this on top of everything

CMD:piss(playerid,params[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_PISSING); /line 59
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}


CMD:carry(playerid,params[])
{
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CARRY);
   SendClientMessage(playerid, COLOR_RED, "[Animations] {FFFFFF} Press (Enter) To Stop The Animation !!");
   return 1;
}

CMD:animhelp(playerid,params[])
{
    SendClientMessage(playerid, COLOR_ORANGE, "/cigar,/drinkbeer,/phone,/sit."); //line 128
    SendClientMessage(playerid, COLOR_ORANGE, "/dance1,/dance2,/dance3,dance4.");
    SendClientMessage(playerid, COLOR_ORANGE, "/stopphone,/carry,/cola,/sit.");
    SendClientMessage(playerid, COLOR_ORANGE, "/hundsup,/cuffed,Made By Aymane.");
    return 1;
}



Re: Some Help Please ?? - aymane123 - 26.11.2016

all this is already done:
Код:
#include <a_samp>
#include <zcmd>
#include <aColors>

#define SPECIAL_ACTION_PISSING
#define SPECIAL_ACTION_CARRY
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define cigar
#define drinkbeer
#define phone
#define sit


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Animations By Aymane LOADED!");
	print("--------------------------------------\n");
	return 1;
}



Re: Some Help Please ?? - BrianFaria - 26.11.2016

But it is badly defined, put it as it happens.


Re: Some Help Please ?? - Alvitr - 26.11.2016

PHP код:
#include <a_samp>
#include <zcmd>
#include <aColors>
#define SPECIAL_ACTION_PISSING // nothing 
#define SPECIAL_ACTION_CARRY // nothing
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define cigar
#define drinkbeer
#define phone
#define sit 
seems like you havent currently defined SPECIAL_ACTION_PISSING and SPECIAL_ACTION_CARRY,
cause in your script there are nothing,

try
Speedpro said
Code:
PHP код:
#define SPECIAL_ACTION_PISSING 68 // now SPECIAL_ACTION_PISSING is 68
#define SPECIAL_ACTION_CARRY 25 // now SPECIAL_ACTION_CARRY is 25 



Re: Some Help Please ?? - aymane123 - 26.11.2016

tthx