PDA

View Full Version : Hello i have 4 errors on one line


xRotem
14/07/2012, 06:54 PM
Errors:
(71475) : error 017: undefined symbol "foreach"
(71475) : error 029: invalid expression, assumed zero
(71475) : error 017: undefined symbol "Player"
(71475) : fatal error 107: too many error messages on one line

Line:
foreach(new i: Player) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {

xRotem
14/07/2012, 07:39 PM
Bump :D

Cxnnor
14/07/2012, 08:04 PM
At the top.
#include <foreach>

Replace your line with this.
foreach(new i: playerid) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid));

xRotem
14/07/2012, 08:55 PM
At the top.
#include <foreach>

Replace your line with this.
foreach(new i: playerid) if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid));

Its make the progrem not response..

LaGrande
14/07/2012, 09:16 PM
download latest includes

xRotem
14/07/2012, 10:07 PM
download latest includes
Its stay... please!! i so need it please help me

Cxnnor
14/07/2012, 10:25 PM
Show your includes and the complete callback related to the line with errors.

xRotem
15/07/2012, 08:17 AM
So what to do? oh alright, i do it and its stay do it [ not response ]
How i do the code:
foreach(new i: playerid)
if(GetPlayerVehicleID(i) != 0 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) {
And now its give me errors :D [with the YSI i think i don't know]
Errors:
C:\Users\user\Desktop\Server\gamemodes\CGRP.pwn(71 475) : error 017: undefined symbol "playerid@YSII_Ag"
C:\Users\user\Desktop\Server\gamemodes\CGRP.pwn(71 475) : error 017: undefined symbol "playerid@YSII_Ag"
C:\Users\user\Desktop\Server\gamemodes\CGRP.pwn(71 475) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\Server\gamemodes\CGRP.pwn(71 475) : fatal error 107: too many error messages on one line
Line:
foreach(new i: playerid)

xRotem
15/07/2012, 09:21 AM
Player, not playerid - text and case are important.
Thanks and new errors:
error 017: undefined symbol "PlayAudioStreamForPlayerEx"
error 017: undefined symbol "PlayAudioStreamForPlayerEx"
error 017: undefined symbol "PlayAudioStreamForPlayerEx"
error 017: undefined symbol "PlayAudioStreamForPlayerEx"
error 017: undefined symbol "PlayAudioStreamForPlayerEx"
error 017: undefined symbol "PlayAudioStreamForPlayerEx"

xRotem
15/07/2012, 09:25 AM
There's no such function.
so what to do?

leonardo1434
15/07/2012, 09:28 AM
here its the right function.

http://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer

xRotem
15/07/2012, 09:41 AM
here its the right function.

http://wiki.sa-mp.com/wiki/PlayAudioStreamForPlayer
Thanks but now..
(71551) : error 001: expected token: ";", but found "["
(71551) : error 029: invalid expression, assumed zero
(71551) : error 001: expected token: ";", but found "]"
(71551) : fatal error 107: too many error messages on one line
Line:
stationidv[GetPlayerVehicleID(playerid)][0] = 0;

clarencecuzz
15/07/2012, 09:43 AM
Try
stationidv[GetPlayerVehicleID(playerid)] = 0;

Angry Shadow
15/07/2012, 09:46 AM
Its make the progrem not response..

Lol then just wait >.<
Then u not gonna get any errors.
When its doesnt respone i waiting...
To it response and then i not get any error...

xRotem
15/07/2012, 09:47 AM
Try
stationidv[GetPlayerVehicleID(playerid)] = 0;
Thank you! , Thank you all! and i just want this :\
(71702) : error 017: undefined symbol "ShowNoticeGUIFrame"
(71725) : error 017: undefined symbol "ShowNoticeGUIFrame"
(71748) : error 017: undefined symbol "ShowNoticeGUIFrame"
(71762) : error 017: undefined symbol "ShowNoticeGUIFrame"
Lines:
ShowNoticeGUIFrame(playerid, 6);
ShowNoticeGUIFrame(playerid, 6);
ShowNoticeGUIFrame(playerid, 6);

xRotem
15/07/2012, 11:02 AM
Anyone ? :-(