23.05.2016, 01:07
(
Последний раз редактировалось pors; 24.05.2016 в 23:12.
)
Can you help me
Код:
error 017: undefined symbol "playerid" error 029: invalid expression, assumed zero warning 215: expression has no effect error 001: expected token: ";", but found "]" fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
#include <a_samp> #include <zcmd> #pragma tabsize 0 new MessageStr[5][128]; new PlayerText:Message[5]; public OnFilterScriptInit() { for(new line; line<5; line++) { format(MessageStr[line], 128, " "); } Message[playerid][0] = CreatePlayerTextDraw(300, 100+200, MessageStr[0]); Message[playerid][1] = CreatePlayerTextDraw(300, 112+200, MessageStr[1]); Message[playerid][2] = CreatePlayerTextDraw(300, 124+200, MessageStr[2]); Message[playerid][3] = CreatePlayerTextDraw(300, 136+200, MessageStr[3]); Message[playerid][4] = CreatePlayerTextDraw(300, 148+200, MessageStr[4]); for(new line; line<5; line++) { PlayerTextDrawLetterSize(playerid,Message[line], 0.249999, 1.199998); PlayerTextDrawSetShadow(playerid,Message[line], 0); PlayerTextDrawAlignment(playerid,Message[line], 1); PlayerTextDrawFont(playerid,Message[line], 1); PlayerTextDrawSetShadow(playerid,Message[line]); PlayerTextDrawShow(playerid, Message[line][playerid]); } for(new line; line<5; line++) { PlayerTextDrawLetterSize(playerid,Message[line], 0.249999, 1.199998); PlayerTextDrawSetShadow(playerid,Message[line], 0); PlayerTextDrawAlignment(playerid,Message[line], 1); PlayerTextDrawTextSize(playerid,Message[line], 640, 480); PlayerTextDrawFont(playerid,Message[line], 1); PlayerTextDrawSetOutline(playerid,Message[line], 1); PlayerTextDrawSetShadow(playerid,Message[line]); PlayerTextDrawShow(playerid, Message[line][playerid]); } return 1; } public OnFilterScriptExit() { for(new line; line<5; line++) { PlayerTextDrawDestroy(playerid,Message[line][playerid]); } return 1; } CMD:lvairport(playerid, params[]) { #pragma unused params new stringD[128]; format(stringD, sizeof(stringD), "~r~~h~You've been teleported to Las Venturas Airport."); SendLeMessage(playerid, stringD); SetPlayerPos(playerid, 1487.9703,1736.9537,10.8125); return 1; } stock SendLeMessage(playerid, const text[]) { for(new line; line < 5; line++) { PlayerTextDrawShow(playerid, Message[line]); } for(new line; line < 5; line++) { PlayerTextDrawHide(playerid,Message[line]); if(line < 4) { MessageStr[line] = MessageStr[line+1]; TextDrawSetString(Message[line], MessageStr[line]); } } format(MessageStr[4], 128, "%s",text); TextDrawSetString(Message[4], MessageStr[4]); for(new line; line < 5; line++) { PlayerTextDrawShow(playerid,Message[line]); } return 1; }