[HELP] error 012: invalid function call, not a valid address
#1

Код:
///////////////////////////////////ARAЗ SATIN
	if(newstate == PLAYER_STATE_DRIVER){
    if(strlen(AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]) > 0){
	if(!strcmp("[Yok]", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip])){
	new str[300]; format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Bu Araз Satılıktır.{FF6666}Fiyatı: {99FF00}$%d. {FFFFFF}Satın Almak İзin; {99FF00}/satınal {FFFFFF}Yazınız.", AracBilgi[aid[GetPlayerVehicleID(playerid)]][fiyat]);
	SendClientMessage(playerid, -1, str);
	if(IsPlayerAdmin(playerid)) TogVehicleEngine(GetPlayerVehicleID(playerid), 1);
	else TogVehicleEngine(GetPlayerVehicleID(playerid), 0);
	} else if(strcmp(Isim(playerid), AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]); {
	new str[300];
	format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Bu Aracın Sahibi: {99FF00}%s{FFFFFF}'dir. {FF6666}((UZAK DURUN))", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]);
	SendClientMessage(playerid, -1, str);
	if(AracBilgi[aid[GetPlayerVehicleID(playerid)]][alarmms] == 1) TogVehicleAlarm(GetPlayerVehicleID(playerid), 1),
	KillTimer(alarmtimer[GetPlayerVehicleID(playerid)]),
	alarmtimer[GetPlayerVehicleID(playerid)] = SetTimerEx("AlarmKapat", 30000, false, "d", aracc[secilenarac[playerid]]);
	RemovePlayerFromVehicle(playerid);
	} else {
	new str[300];
	format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Aracınıza Hosgeldiniz {99FF00}''%s'' {FFFFFF}İyi Yolculuklar :)..", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]);
	TogVehicleEngine(GetPlayerVehicleID(playerid), 1);
	SendClientMessage(playerid, -1, str);
	}}}

Код:
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 012: invalid function call, not a valid address
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : warning 215: expression has no effect
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 001: expected token: ";", but found ")"
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 029: invalid expression, assumed zero
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Remove
PHP код:

At the end
PHP код:
else if(strcmp(Isim(playerid), AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]) 
Reply
#3

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Remove
PHP код:

At the end
PHP код:
else if(strcmp(Isim(playerid), AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]) 
Код:
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 029: invalid expression, assumed zero
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : warning 215: expression has no effect
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 001: expected token: ";", but found "if"
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : error 012: invalid function call, not a valid address
E:\A-FR 2015\gamemodes\JUDY-2015.pwn(13163) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
///////////////////////////////////ARAЗ SATIN
	if(newstate == PLAYER_STATE_DRIVER){
    if(strlen(AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]) > 0){
	if(!strcmp("[Yok]", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip])){
	new str[300]; format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Bu Araз Satılıktır.{FF6666}Fiyatı: {99FF00}$%d. {FFFFFF}Satın Almak İзin; {99FF00}/satınal {FFFFFF}Yazınız.", AracBilgi[aid[GetPlayerVehicleID(playerid)]][fiyat]);
	SendClientMessage(playerid, -1, str);
	if(IsPlayerAdmin(playerid)) TogVehicleEngine(GetPlayerVehicleID(playerid), 1);
	else TogVehicleEngine(GetPlayerVehicleID(playerid), 0);
   else if(strcmp(Isim(playerid), AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]){
	new str[300];
	format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Bu Aracın Sahibi: {99FF00}%s{FFFFFF}'dir. {FF6666}((UZAK DURUN))", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]);
	SendClientMessage(playerid, -1, str);
	if(AracBilgi[aid[GetPlayerVehicleID(playerid)]][alarmms] == 1) TogVehicleAlarm(GetPlayerVehicleID(playerid), 1),
	KillTimer(alarmtimer[GetPlayerVehicleID(playerid)]),
	alarmtimer[GetPlayerVehicleID(playerid)] = SetTimerEx("AlarmKapat", 30000, false, "d", aracc[secilenarac[playerid]]);
	RemovePlayerFromVehicle(playerid);
	} else {
	new str[300];
	format(str, sizeof(str), "{FFFFFF}** {FF6666}[BİLGİ]: {FFFFFF}Aracınıza Hosgeldiniz {99FF00}''%s'' {FFFFFF}İyi Yolculuklar :)..", AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]);
	TogVehicleEngine(GetPlayerVehicleID(playerid), 1);
	SendClientMessage(playerid, -1, str);
	}}}}
Reply
#4

PHP код:
else return TogVehicleEngine(GetPlayerVehicleID(playerid), 0);
else if(
strcmp(Isim(playerid), AracBilgi[aid[GetPlayerVehicleID(playerid)]][aracsahip]) //You can't use , at if if you want to add AND type && , if you want to add OR add || 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)