Jump to content

Recommended Posts

Posted

(53) : error 029: invalid expression, assumed zero
(53) : error 029: invalid expression, assumed zero
(53) : warning 215: expression has no effect
(53) : error 001: expected token: ";", but found "]"
(53) : fatal error 107: too many error messages on one line

Linia 83: 

LINIA 52:hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
LINIA 53:    if(specialQuest[playerid]) {
LINIA 54:        if(newkeys & KEY_YES) {

Posted (edited)
4 hours ago, Catalinnz said:

if(specialQuest[playerid]) {

Nu poti verifica aceasta variabila cand jucatorul apasa Y, inainte ca aceasta sa apase tasta Y, dar cu toate aceastea e gresit, trebuie sa verifici specialquest[playerid], dar cu ce return? Adica ce se intampla dupa ce jucatorul apasa tasta Y, doar verifici ce?

Un exemplu ar fi:

hook OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
	if(newkeys & KEY_YES) {
		
		if(specialQuest[playerid]) return SendClientMessage(playerid, -1, "Esti pe drumul cel bun mai ai de colectat %s globuri", globuri(playerid));

 

Edited by zNx[]

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.